on master help sign in
Apply more strict GHC options to non-library components
c972d4cMark Karpov
req.cabal+6−4
@@ -82,7 +82,6 @@ test-suite pure-tests
82 http-client >=0.7 && <0.8,
82 http-client >=0.7 && <0.8,
83 http-types >=0.8 && <10.0,
83 http-types >=0.8 && <10.0,
84 modern-uri >=0.3 && <0.4,
84 modern-uri >=0.3 && <0.4,
85− mtl >=2.0 && <3.0,
86 req,
85 req,
87 retry >=0.8 && <0.10,
86 retry >=0.8 && <0.10,
88 template-haskell >=2.14 && <2.21,
87 template-haskell >=2.14 && <2.21,
@@ -90,7 +89,9 @@ test-suite pure-tests
90 time >=1.2 && <1.13
89 time >=1.2 && <1.13
91
90
92 if flag(dev)
91 if flag(dev)
93− ghc-options: -Wall -Werror
92+ ghc-options:
93+ -Wall -Werror -Wredundant-constraints -Wpartial-fields
94+ -Wunused-packages
94
95
95 else
96 else
96 ghc-options: -O2 -Wall
97 ghc-options: -O2 -Wall
@@ -111,12 +112,13 @@ test-suite httpbun-tests
111 http-client >=0.7 && <0.8,
112 http-client >=0.7 && <0.8,
112 http-types >=0.8 && <10.0,
113 http-types >=0.8 && <10.0,
113 monad-control >=1.0 && <1.1,
114 monad-control >=1.0 && <1.1,
114− mtl >=2.0 && <3.0,
115 req,
115 req,
116 text >=0.2 && <2.1
116 text >=0.2 && <2.1
117
117
118 if flag(dev)
118 if flag(dev)
119− ghc-options: -Wall -Werror
119+ ghc-options:
120+ -Wall -Werror -Wredundant-constraints -Wpartial-fields
121+ -Wunused-packages
120
122
121 else
123 else
122 ghc-options: -O2 -Wall
124 ghc-options: -O2 -Wall