Add ci flag to CI

- set -Werror in CI
- fix GHC 9.2 warning about TH looking syntax ($e)
This commit is contained in:
Ondřej Šebek 2022-06-08 15:06:59 +02:00 committed by Ondřej Šebek
parent 94c876a01a
commit ff9ec66711
2 changed files with 5 additions and 1 deletions

View File

@ -198,6 +198,7 @@ jobs:
echo "package swarm" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
cat >> cabal.project <<EOF
flags: +ci
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(swarm)$/; }' >> cabal.project.local
cat cabal.project

View File

@ -21,4 +21,7 @@ benchmarks: True
hlint: True
hlint-job: 9.0.2
hlint-yaml: .hlint.yaml
hlint-download-binary: True
hlint-download-binary: True
raw-project
flags: +ci