@@ -40,6 +40,9 @@ common deps
40
40
, deepseq >= 1.2 && < 1.6
41
41
, template-haskell
42
42
43
+ common warnings
44
+ ghc-options : -Werror=unused-top-binds
45
+
43
46
common test-deps
44
47
import : deps
45
48
build-depends :
@@ -140,39 +143,39 @@ library
140
143
-----------------------------
141
144
142
145
benchmark intmap-benchmarks
143
- import : benchmark-deps
146
+ import : benchmark-deps, warnings
144
147
default-language : Haskell2010
145
148
type : exitcode-stdio-1.0
146
149
hs-source-dirs : benchmarks
147
150
main-is : IntMap.hs
148
151
ghc-options : -O2
149
152
150
153
benchmark intset-benchmarks
151
- import : benchmark-deps
154
+ import : benchmark-deps, warnings
152
155
default-language : Haskell2010
153
156
type : exitcode-stdio-1.0
154
157
hs-source-dirs : benchmarks
155
158
main-is : IntSet.hs
156
159
ghc-options : -O2
157
160
158
161
benchmark map-benchmarks
159
- import : benchmark-deps
162
+ import : benchmark-deps, warnings
160
163
default-language : Haskell2010
161
164
type : exitcode-stdio-1.0
162
165
hs-source-dirs : benchmarks
163
166
main-is : Map.hs
164
167
ghc-options : -O2
165
168
166
169
benchmark tree-benchmarks
167
- import : benchmark-deps
170
+ import : benchmark-deps, warnings
168
171
default-language : Haskell2010
169
172
type : exitcode-stdio-1.0
170
173
hs-source-dirs : benchmarks
171
174
main-is : Tree.hs
172
175
ghc-options : -O2
173
176
174
177
benchmark sequence-benchmarks
175
- import : benchmark-deps
178
+ import : benchmark-deps, warnings
176
179
default-language : Haskell2010
177
180
type : exitcode-stdio-1.0
178
181
hs-source-dirs : benchmarks
@@ -183,15 +186,15 @@ benchmark sequence-benchmarks
183
186
, transformers
184
187
185
188
benchmark set-benchmarks
186
- import : benchmark-deps
189
+ import : benchmark-deps, warnings
187
190
default-language : Haskell2010
188
191
type : exitcode-stdio-1.0
189
192
hs-source-dirs : benchmarks
190
193
main-is : Set.hs
191
194
ghc-options : -O2
192
195
193
196
benchmark graph-benchmarks
194
- import : benchmark-deps
197
+ import : benchmark-deps, warnings
195
198
default-language : Haskell2010
196
199
type : exitcode-stdio-1.0
197
200
hs-source-dirs : benchmarks
@@ -201,7 +204,7 @@ benchmark graph-benchmarks
201
204
random >= 0 && < 1.2
202
205
203
206
benchmark set-operations-intmap
204
- import : benchmark-deps
207
+ import : benchmark-deps, warnings
205
208
default-language : Haskell2010
206
209
type : exitcode-stdio-1.0
207
210
hs-source-dirs : benchmarks/SetOperations
@@ -210,7 +213,7 @@ benchmark set-operations-intmap
210
213
ghc-options : -O2
211
214
212
215
benchmark set-operations-intset
213
- import : benchmark-deps
216
+ import : benchmark-deps, warnings
214
217
default-language : Haskell2010
215
218
type : exitcode-stdio-1.0
216
219
hs-source-dirs : benchmarks/SetOperations
@@ -219,7 +222,7 @@ benchmark set-operations-intset
219
222
ghc-options : -O2
220
223
221
224
benchmark set-operations-map
222
- import : benchmark-deps
225
+ import : benchmark-deps, warnings
223
226
default-language : Haskell2010
224
227
type : exitcode-stdio-1.0
225
228
hs-source-dirs : benchmarks/SetOperations
@@ -228,7 +231,7 @@ benchmark set-operations-map
228
231
ghc-options : -O2
229
232
230
233
benchmark set-operations-set
231
- import : benchmark-deps
234
+ import : benchmark-deps, warnings
232
235
default-language : Haskell2010
233
236
type : exitcode-stdio-1.0
234
237
hs-source-dirs : benchmarks/SetOperations
@@ -237,7 +240,7 @@ benchmark set-operations-set
237
240
ghc-options : -O2
238
241
239
242
benchmark lookupge-intmap
240
- import : benchmark-deps
243
+ import : benchmark-deps, warnings
241
244
default-language : Haskell2010
242
245
type : exitcode-stdio-1.0
243
246
hs-source-dirs : benchmarks/LookupGE
@@ -246,7 +249,7 @@ benchmark lookupge-intmap
246
249
build-depends : containers-tests
247
250
248
251
benchmark lookupge-map
249
- import : benchmark-deps
252
+ import : benchmark-deps, warnings
250
253
default-language : Haskell2010
251
254
type : exitcode-stdio-1.0
252
255
hs-source-dirs : benchmarks/LookupGE
@@ -263,7 +266,7 @@ benchmark lookupge-map
263
266
-- plus the testing stuff.
264
267
265
268
test-suite map-lazy-properties
266
- import : test-deps
269
+ import : test-deps, warnings
267
270
default-language : Haskell2010
268
271
hs-source-dirs : tests
269
272
main-is : map-properties.hs
@@ -275,7 +278,7 @@ test-suite map-lazy-properties
275
278
CPP
276
279
277
280
test-suite map-strict-properties
278
- import : test-deps
281
+ import : test-deps, warnings
279
282
default-language : Haskell2010
280
283
hs-source-dirs : tests
281
284
main-is : map-properties.hs
@@ -288,7 +291,7 @@ test-suite map-strict-properties
288
291
CPP
289
292
290
293
test-suite bitqueue-properties
291
- import : test-deps
294
+ import : test-deps, warnings
292
295
default-language : Haskell2010
293
296
hs-source-dirs : tests
294
297
main-is : bitqueue-properties.hs
@@ -299,7 +302,7 @@ test-suite bitqueue-properties
299
302
CPP
300
303
301
304
test-suite set-properties
302
- import : test-deps
305
+ import : test-deps, warnings
303
306
default-language : Haskell2010
304
307
hs-source-dirs : tests
305
308
main-is : set-properties.hs
@@ -317,7 +320,7 @@ test-suite set-properties
317
320
Utils.NoThunks
318
321
319
322
test-suite intmap-lazy-properties
320
- import : test-deps
323
+ import : test-deps, warnings
321
324
default-language : Haskell2010
322
325
hs-source-dirs : tests
323
326
main-is : intmap-properties.hs
@@ -330,7 +333,7 @@ test-suite intmap-lazy-properties
330
333
CPP
331
334
332
335
test-suite intmap-strict-properties
333
- import : test-deps
336
+ import : test-deps, warnings
334
337
default-language : Haskell2010
335
338
hs-source-dirs : tests
336
339
main-is : intmap-properties.hs
@@ -344,7 +347,7 @@ test-suite intmap-strict-properties
344
347
CPP
345
348
346
349
test-suite intset-properties
347
- import : test-deps
350
+ import : test-deps, warnings
348
351
default-language : Haskell2010
349
352
hs-source-dirs : tests
350
353
main-is : intset-properties.hs
@@ -357,7 +360,7 @@ test-suite intset-properties
357
360
CPP
358
361
359
362
test-suite seq-properties
360
- import : test-deps
363
+ import : test-deps, warnings
361
364
default-language : Haskell2010
362
365
hs-source-dirs : tests
363
366
main-is : seq-properties.hs
@@ -369,7 +372,7 @@ test-suite seq-properties
369
372
CPP
370
373
371
374
test-suite tree-properties
372
- import : test-deps
375
+ import : test-deps, warnings
373
376
default-language : Haskell2010
374
377
hs-source-dirs : tests
375
378
main-is : tree-properties.hs
@@ -381,15 +384,15 @@ test-suite tree-properties
381
384
CPP
382
385
383
386
test-suite graph-properties
384
- import : test-deps
387
+ import : test-deps, warnings
385
388
default-language : Haskell2010
386
389
hs-source-dirs : tests
387
390
main-is : graph-properties.hs
388
391
type : exitcode-stdio-1.0
389
392
ghc-options : -O2
390
393
391
394
test-suite map-strictness-properties
392
- import : test-deps
395
+ import : test-deps, warnings
393
396
default-language : Haskell2010
394
397
hs-source-dirs : tests
395
398
main-is : map-strictness.hs
@@ -412,7 +415,7 @@ test-suite map-strictness-properties
412
415
Utils.NoThunks
413
416
414
417
test-suite intmap-strictness-properties
415
- import : test-deps
418
+ import : test-deps, warnings
416
419
default-language : Haskell2010
417
420
hs-source-dirs : tests
418
421
main-is : intmap-strictness.hs
@@ -436,7 +439,7 @@ test-suite intmap-strictness-properties
436
439
Utils.NoThunks
437
440
438
441
test-suite intset-strictness-properties
439
- import : test-deps
442
+ import : test-deps, warnings
440
443
default-language : Haskell2010
441
444
hs-source-dirs : tests
442
445
main-is : intset-strictness.hs
@@ -457,7 +460,7 @@ test-suite intset-strictness-properties
457
460
Utils.NoThunks
458
461
459
462
test-suite listutils-properties
460
- import : test-deps
463
+ import : test-deps, warnings
461
464
default-language : Haskell2010
462
465
hs-source-dirs : tests
463
466
main-is : listutils-properties.hs
0 commit comments