@@ -82,7 +82,14 @@ flag yaml-streamly
82
82
default : False
83
83
manual : True
84
84
85
+ common common-ghc-options
86
+ ghc-options :
87
+ -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
88
+ -fwarn-incomplete-record-updates -Werror=incomplete-patterns
89
+
85
90
common app-common-depends
91
+ import : common-ghc-options
92
+
86
93
build-depends :
87
94
, aeson >= 1.4
88
95
, aeson-pretty ^>= 0.8.8
@@ -197,10 +204,6 @@ library
197
204
TypeFamilies
198
205
ViewPatterns
199
206
200
- ghc-options :
201
- -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
202
- -fwarn-incomplete-record-updates
203
-
204
207
build-depends :
205
208
, aeson >= 1.4
206
209
, async >= 0.8 && < 2.3
@@ -350,10 +353,6 @@ library ghcup-optparse
350
353
StrictData
351
354
TupleSections
352
355
353
- ghc-options :
354
- -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
355
- -fwarn-incomplete-record-updates
356
-
357
356
build-depends : ghcup
358
357
359
358
if flag(internal-downloader)
@@ -399,10 +398,6 @@ library ghcup-tui
399
398
StrictData
400
399
TupleSections
401
400
402
- ghc-options :
403
- -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
404
- -fwarn-incomplete-record-updates
405
-
406
401
build-depends :
407
402
, ghcup
408
403
, brick >= 2.1 && < 2.8
@@ -434,8 +429,7 @@ executable ghcup
434
429
TupleSections
435
430
436
431
ghc-options :
437
- -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
438
- -fwarn-incomplete-record-updates -threaded
432
+ -threaded
439
433
440
434
build-depends :
441
435
, ghcup
@@ -459,6 +453,7 @@ executable ghcup
459
453
buildable : False
460
454
461
455
test-suite ghcup-test
456
+ import : common-ghc-options
462
457
type : exitcode-stdio-1.0
463
458
main-is : Main.hs
464
459
build-tool-depends : hspec-discover :hspec-discover -any
@@ -481,8 +476,7 @@ test-suite ghcup-test
481
476
TupleSections
482
477
483
478
ghc-options :
484
- -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
485
- -fwarn-incomplete-record-updates -fconstraint-solver-iterations= 0
479
+ -fconstraint-solver-iterations= 0
486
480
487
481
build-depends :
488
482
, base >= 4.12 && < 5
@@ -510,6 +504,7 @@ test-suite ghcup-test
510
504
build-depends : unix ^>= 2.7 || ^>= 2.8
511
505
512
506
test-suite ghcup-optparse-test
507
+ import : common-ghc-options
513
508
type : exitcode-stdio-1.0
514
509
hs-source-dirs : test/optparse-test
515
510
main-is : Main.hs
@@ -533,7 +528,6 @@ test-suite ghcup-optparse-test
533
528
cpp-options : -DIS_WINDOWS
534
529
535
530
default-language : Haskell2010
536
- ghc-options : -Wall
537
531
build-depends :
538
532
, base
539
533
, ghcup
0 commit comments