@@ -93,6 +93,10 @@ Flag InternalChecks
93
93
Default : False
94
94
Manual : True
95
95
96
+ Flag Wall
97
+ Description : Enable all -Wall warnings
98
+ Default : False
99
+ Manual : True
96
100
97
101
Library
98
102
Default-Language : Haskell2010
@@ -154,10 +158,13 @@ Library
154
158
if !impl(ghc > 8.0 )
155
159
Build-Depends : semigroups >= 0.18 && < 0.19
156
160
157
- Ghc-Options : -O2 -Wall -fno-warn-orphans
161
+ Ghc-Options : -O2 -Wall
162
+
163
+ if !flag(Wall)
164
+ Ghc-Options : -fno-warn-orphans
158
165
159
- if impl(ghc >= 8.0 ) && impl( ghc < 8.1 )
160
- Ghc-Options : -Wno-redundant-constraints
166
+ if impl(ghc >= 8.0 ) && impl(ghc < 8.1 )
167
+ Ghc-Options : -Wno-redundant-constraints
161
168
162
169
if flag(BoundsChecks)
163
170
cpp-options : -DVECTOR_BOUNDS_CHECKS
@@ -195,9 +202,12 @@ test-suite vector-tests-O0
195
202
TemplateHaskell
196
203
197
204
Ghc-Options : -O0
198
- Ghc-Options : -Wall -fno-warn-orphans -fno-warn-missing-signatures
199
- if impl(ghc >= 8.0 ) && impl( ghc < 8.1 )
200
- Ghc-Options : -Wno-redundant-constraints
205
+ Ghc-Options : -Wall
206
+
207
+ if !flag(Wall)
208
+ Ghc-Options : -fno-warn-orphans -fno-warn-missing-signatures
209
+ if impl(ghc >= 8.0 ) && impl( ghc < 8.1 )
210
+ Ghc-Options : -Wno-redundant-constraints
201
211
202
212
203
213
test-suite vector-tests-O2
@@ -220,8 +230,10 @@ test-suite vector-tests-O2
220
230
TypeFamilies,
221
231
TemplateHaskell
222
232
223
- Ghc-Options : -O2
224
- if impl(ghc >= 8.0 ) && impl( ghc < 8.1 )
225
- Ghc-Options : -Wno-redundant-constraints
233
+ Ghc-Options : -O2 -Wall
234
+
235
+ if !flag(Wall)
236
+ Ghc-Options : -fno-warn-orphans -fno-warn-missing-signatures
237
+ if impl(ghc >= 8.0 ) && impl(ghc < 8.1 )
238
+ Ghc-Options : -Wno-redundant-constraints
226
239
227
- Ghc-Options : -Wall -fno-warn-orphans -fno-warn-missing-signatures
0 commit comments