cabal: fix upload to hackage (#1532)

When doing:

```
cabal upload dist-newstyle/sdist/postgrest-7.0.1.tar.gz
```

The following error is shown:

```
Error: Invalid package

'ghc-options: -Wall -Werror' makes the package very easy to break with
future GHC versions because new GHC versions often add new warnings.
Use just 'ghc-options: -Wall' instead. Alternatively, if you want to
use this, make it conditional based on a Cabal configuration flag
(with 'manual: True' and 'default: False') and enable that flag
during development.
```

Put -Werror in a cabal flag to work around this restriction.
This commit is contained in:
Steve Chavez
2020-05-19 13:59:33 -05:00
committed by GitHub
parent 222a53015e
commit 67344c8e0a
3 changed files with 19 additions and 7 deletions
+4 -1
View File
@@ -1,8 +1,11 @@
# stack is used for circleci and appveyor CI builds
resolver: lts-15.8
flags:
postgrest:
FailOnWarn: true
nix:
packages: [pcre, pkgconfig, postgresql, zlib]
# disable pure by default so that the test enviroment can be passed
# disable pure by default so that the test enviroment can be passed
pure: false
extra-deps:
- configurator-pg-0.2.2@sha256:8f3f7c66dd4a53852283c70806ebc101a7219f8b01c3e80c5130e9749c998dc8,2987