@@ -40,6 +40,9 @@ common deps
4040 , deepseq >= 1.2 && < 1.6
4141 , template-haskell
4242
43+ common warnings
44+ ghc-options : -Werror=unused-top-binds
45+
4346common test-deps
4447 import : deps
4548 build-depends :
@@ -140,39 +143,39 @@ library
140143-----------------------------
141144
142145benchmark intmap-benchmarks
143- import : benchmark-deps
146+ import : benchmark-deps, warnings
144147 default-language : Haskell2010
145148 type : exitcode-stdio-1.0
146149 hs-source-dirs : benchmarks
147150 main-is : IntMap.hs
148151 ghc-options : -O2
149152
150153benchmark intset-benchmarks
151- import : benchmark-deps
154+ import : benchmark-deps, warnings
152155 default-language : Haskell2010
153156 type : exitcode-stdio-1.0
154157 hs-source-dirs : benchmarks
155158 main-is : IntSet.hs
156159 ghc-options : -O2
157160
158161benchmark map-benchmarks
159- import : benchmark-deps
162+ import : benchmark-deps, warnings
160163 default-language : Haskell2010
161164 type : exitcode-stdio-1.0
162165 hs-source-dirs : benchmarks
163166 main-is : Map.hs
164167 ghc-options : -O2
165168
166169benchmark tree-benchmarks
167- import : benchmark-deps
170+ import : benchmark-deps, warnings
168171 default-language : Haskell2010
169172 type : exitcode-stdio-1.0
170173 hs-source-dirs : benchmarks
171174 main-is : Tree.hs
172175 ghc-options : -O2
173176
174177benchmark sequence-benchmarks
175- import : benchmark-deps
178+ import : benchmark-deps, warnings
176179 default-language : Haskell2010
177180 type : exitcode-stdio-1.0
178181 hs-source-dirs : benchmarks
@@ -183,15 +186,15 @@ benchmark sequence-benchmarks
183186 , transformers
184187
185188benchmark set-benchmarks
186- import : benchmark-deps
189+ import : benchmark-deps, warnings
187190 default-language : Haskell2010
188191 type : exitcode-stdio-1.0
189192 hs-source-dirs : benchmarks
190193 main-is : Set.hs
191194 ghc-options : -O2
192195
193196benchmark graph-benchmarks
194- import : benchmark-deps
197+ import : benchmark-deps, warnings
195198 default-language : Haskell2010
196199 type : exitcode-stdio-1.0
197200 hs-source-dirs : benchmarks
@@ -201,7 +204,7 @@ benchmark graph-benchmarks
201204 random >= 0 && < 1.2
202205
203206benchmark set-operations-intmap
204- import : benchmark-deps
207+ import : benchmark-deps, warnings
205208 default-language : Haskell2010
206209 type : exitcode-stdio-1.0
207210 hs-source-dirs : benchmarks/SetOperations
@@ -210,7 +213,7 @@ benchmark set-operations-intmap
210213 ghc-options : -O2
211214
212215benchmark set-operations-intset
213- import : benchmark-deps
216+ import : benchmark-deps, warnings
214217 default-language : Haskell2010
215218 type : exitcode-stdio-1.0
216219 hs-source-dirs : benchmarks/SetOperations
@@ -219,7 +222,7 @@ benchmark set-operations-intset
219222 ghc-options : -O2
220223
221224benchmark set-operations-map
222- import : benchmark-deps
225+ import : benchmark-deps, warnings
223226 default-language : Haskell2010
224227 type : exitcode-stdio-1.0
225228 hs-source-dirs : benchmarks/SetOperations
@@ -228,7 +231,7 @@ benchmark set-operations-map
228231 ghc-options : -O2
229232
230233benchmark set-operations-set
231- import : benchmark-deps
234+ import : benchmark-deps, warnings
232235 default-language : Haskell2010
233236 type : exitcode-stdio-1.0
234237 hs-source-dirs : benchmarks/SetOperations
@@ -237,7 +240,7 @@ benchmark set-operations-set
237240 ghc-options : -O2
238241
239242benchmark lookupge-intmap
240- import : benchmark-deps
243+ import : benchmark-deps, warnings
241244 default-language : Haskell2010
242245 type : exitcode-stdio-1.0
243246 hs-source-dirs : benchmarks/LookupGE
@@ -246,7 +249,7 @@ benchmark lookupge-intmap
246249 build-depends : containers-tests
247250
248251benchmark lookupge-map
249- import : benchmark-deps
252+ import : benchmark-deps, warnings
250253 default-language : Haskell2010
251254 type : exitcode-stdio-1.0
252255 hs-source-dirs : benchmarks/LookupGE
@@ -263,7 +266,7 @@ benchmark lookupge-map
263266-- plus the testing stuff.
264267
265268test-suite map-lazy-properties
266- import : test-deps
269+ import : test-deps, warnings
267270 default-language : Haskell2010
268271 hs-source-dirs : tests
269272 main-is : map-properties.hs
@@ -275,7 +278,7 @@ test-suite map-lazy-properties
275278 CPP
276279
277280test-suite map-strict-properties
278- import : test-deps
281+ import : test-deps, warnings
279282 default-language : Haskell2010
280283 hs-source-dirs : tests
281284 main-is : map-properties.hs
@@ -288,7 +291,7 @@ test-suite map-strict-properties
288291 CPP
289292
290293test-suite bitqueue-properties
291- import : test-deps
294+ import : test-deps, warnings
292295 default-language : Haskell2010
293296 hs-source-dirs : tests
294297 main-is : bitqueue-properties.hs
@@ -299,7 +302,7 @@ test-suite bitqueue-properties
299302 CPP
300303
301304test-suite set-properties
302- import : test-deps
305+ import : test-deps, warnings
303306 default-language : Haskell2010
304307 hs-source-dirs : tests
305308 main-is : set-properties.hs
@@ -317,7 +320,7 @@ test-suite set-properties
317320 Utils.NoThunks
318321
319322test-suite intmap-lazy-properties
320- import : test-deps
323+ import : test-deps, warnings
321324 default-language : Haskell2010
322325 hs-source-dirs : tests
323326 main-is : intmap-properties.hs
@@ -330,7 +333,7 @@ test-suite intmap-lazy-properties
330333 CPP
331334
332335test-suite intmap-strict-properties
333- import : test-deps
336+ import : test-deps, warnings
334337 default-language : Haskell2010
335338 hs-source-dirs : tests
336339 main-is : intmap-properties.hs
@@ -344,7 +347,7 @@ test-suite intmap-strict-properties
344347 CPP
345348
346349test-suite intset-properties
347- import : test-deps
350+ import : test-deps, warnings
348351 default-language : Haskell2010
349352 hs-source-dirs : tests
350353 main-is : intset-properties.hs
@@ -357,7 +360,7 @@ test-suite intset-properties
357360 CPP
358361
359362test-suite seq-properties
360- import : test-deps
363+ import : test-deps, warnings
361364 default-language : Haskell2010
362365 hs-source-dirs : tests
363366 main-is : seq-properties.hs
@@ -369,7 +372,7 @@ test-suite seq-properties
369372 CPP
370373
371374test-suite tree-properties
372- import : test-deps
375+ import : test-deps, warnings
373376 default-language : Haskell2010
374377 hs-source-dirs : tests
375378 main-is : tree-properties.hs
@@ -381,15 +384,15 @@ test-suite tree-properties
381384 CPP
382385
383386test-suite graph-properties
384- import : test-deps
387+ import : test-deps, warnings
385388 default-language : Haskell2010
386389 hs-source-dirs : tests
387390 main-is : graph-properties.hs
388391 type : exitcode-stdio-1.0
389392 ghc-options : -O2
390393
391394test-suite map-strictness-properties
392- import : test-deps
395+ import : test-deps, warnings
393396 default-language : Haskell2010
394397 hs-source-dirs : tests
395398 main-is : map-strictness.hs
@@ -412,7 +415,7 @@ test-suite map-strictness-properties
412415 Utils.NoThunks
413416
414417test-suite intmap-strictness-properties
415- import : test-deps
418+ import : test-deps, warnings
416419 default-language : Haskell2010
417420 hs-source-dirs : tests
418421 main-is : intmap-strictness.hs
@@ -436,7 +439,7 @@ test-suite intmap-strictness-properties
436439 Utils.NoThunks
437440
438441test-suite intset-strictness-properties
439- import : test-deps
442+ import : test-deps, warnings
440443 default-language : Haskell2010
441444 hs-source-dirs : tests
442445 main-is : intset-strictness.hs
@@ -457,7 +460,7 @@ test-suite intset-strictness-properties
457460 Utils.NoThunks
458461
459462test-suite listutils-properties
460- import : test-deps
463+ import : test-deps, warnings
461464 default-language : Haskell2010
462465 hs-source-dirs : tests
463466 main-is : listutils-properties.hs
0 commit comments