on master help sign in
Modernize GHC flags
commit059b123ebb44546d5d08313581082431ae22065c authorMark Karpov <markkarpov92@gmail.com> dateThu 13 Apr 2023, 18:00 (4 years ago) parent6492765
2 files changed+5−9
.github/workflows/ci.yaml+2 req.cabal+3−9
.github/workflows/ci.yaml+2
@@ -43,4 +43,6 @@ jobs:
4343 - run: cabal build $CONFIG
4444 - run: cabal test $CONFIG
4545 - run: cabal haddock $CONFIG
46+ # Haddock fails to build, see https://github.com/haskell/cabal/issues/9060
47+ if: ${{ matrix.ghc != '9.2.7' }}
4648 - run: cabal sdist
req.cabal+3−9
@@ -52,22 +52,16 @@ library
5252 retry >=0.8 && <0.10,
5353 template-haskell >=2.14 && <2.20,
5454 text >=0.2 && <2.1,
55− time >=1.2 && <1.13,
5655 transformers >=0.5.3.0 && <0.7,
5756 transformers-base,
5857 unliftio-core >=0.1.1 && <0.3
5958
6059 if flag(dev)
61− ghc-options: -O0 -Wall -Werror
60+ ghc-options: -Wall -Werror -Wpartial-fields -Wunused-packages
6261
6362 else
6463 ghc-options: -O2 -Wall
6564
66− if flag(dev)
67− ghc-options:
68− -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns
69− -Wnoncanonical-monad-instances
70−
7165test-suite pure-tests
7266 type: exitcode-stdio-1.0
7367 main-is: Spec.hs
@@ -96,7 +90,7 @@ test-suite pure-tests
9690 time >=1.2 && <1.13
9791
9892 if flag(dev)
99− ghc-options: -O0 -Wall -Werror
93+ ghc-options: -Wall -Werror
10094
10195 else
10296 ghc-options: -O2 -Wall
@@ -122,7 +116,7 @@ test-suite httpbun-tests
122116 text >=0.2 && <2.1
123117
124118 if flag(dev)
125− ghc-options: -O0 -Wall -Werror
119+ ghc-options: -Wall -Werror
126120
127121 else
128122 ghc-options: -O2 -Wall