@@ -141,6 +141,9 @@ library cabal-lib-client
141
141
if impl(ghc < 8.8)
142
142
ghc-options: -Wnoncanonical-monadfail-instances
143
143
144
+ if impl(ghc >=8.10)
145
+ ghc-options: -Wunused-packages
146
+
144
147
hs-source-dirs: src
145
148
exposed-modules:
146
149
-- this modules are moved from Cabal
@@ -347,7 +350,6 @@ library cabal-lib-client
347
350
HTTP >= 4000.1.5 && < 4000.4,
348
351
mtl >= 2.0 && < 2.3,
349
352
network-uri >= 2.6.0.2 && < 2.7,
350
- network >= 2.6 && < 3.2,
351
353
pretty >= 1.1 && < 1.2,
352
354
process >= 1.2.3.0 && < 1.7,
353
355
random >= 1 && < 1.2,
@@ -403,6 +405,9 @@ library cabal-install-solver-dsl
403
405
if impl(ghc < 8.8)
404
406
ghc-options: -Wnoncanonical-monadfail-instances
405
407
408
+ if impl(ghc >=8.10)
409
+ ghc-options: -Wunused-packages
410
+
406
411
hs-source-dirs: solver-dsl
407
412
exposed-modules:
408
413
UnitTests.Distribution.Solver.Modular.DSL
@@ -423,6 +428,9 @@ executable cabal
423
428
if impl(ghc < 8.8)
424
429
ghc-options: -Wnoncanonical-monadfail-instances
425
430
431
+ if impl(ghc >=8.10)
432
+ ghc-options: -Wunused-packages
433
+
426
434
427
435
ghc-options: -rtsopts -threaded
428
436
@@ -440,10 +448,21 @@ executable cabal
440
448
-- Small, fast running tests.
441
449
--
442
450
Test-Suite unit-tests
451
+ default-language: Haskell2010
452
+ ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
453
+ if impl(ghc >= 8.0)
454
+ ghc-options: -Wcompat
455
+ -Wnoncanonical-monad-instances
456
+ if impl(ghc < 8.8)
457
+ ghc-options: -Wnoncanonical-monadfail-instances
458
+
459
+ if impl(ghc >=8.10)
460
+ ghc-options: -Wunused-packages
461
+
462
+ ghc-options: -threaded
443
463
type: exitcode-stdio-1.0
444
464
main-is: UnitTests.hs
445
465
hs-source-dirs: tests
446
- ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -main-is UnitTests
447
466
other-modules:
448
467
UnitTests.Distribution.Client.ArbitraryInstances
449
468
UnitTests.Distribution.Client.BuildReport
@@ -474,7 +493,6 @@ Test-Suite unit-tests
474
493
build-depends:
475
494
array,
476
495
base,
477
- async,
478
496
bytestring,
479
497
cabal-lib-client,
480
498
cabal-install-solver-dsl,
@@ -483,7 +501,6 @@ Test-Suite unit-tests
483
501
Cabal-tree-diff,
484
502
Cabal-QuickCheck,
485
503
containers,
486
- deepseq,
487
504
mtl,
488
505
random,
489
506
directory,
@@ -492,64 +509,71 @@ Test-Suite unit-tests
492
509
time,
493
510
zlib,
494
511
network-uri >= 2.6.2.0 && <2.6.4.0,
495
- network,
496
512
tasty >= 1.2.3 && <1.4,
497
513
tasty-golden >=2.3.1.1 && <2.4,
498
514
tasty-hunit >= 0.10,
499
515
tasty-quickcheck,
500
- tagged,
501
516
tree-diff,
502
517
QuickCheck >= 2.14 && <2.15
503
518
504
- ghc-options: -threaded
505
-
506
- default-language: Haskell2010
507
-
508
519
-- Tests to run with a limited stack and heap size
509
520
--
510
521
Test-Suite memory-usage-tests
522
+ default-language: Haskell2010
523
+ ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
524
+ if impl(ghc >= 8.0)
525
+ ghc-options: -Wcompat
526
+ -Wnoncanonical-monad-instances
527
+ if impl(ghc < 8.8)
528
+ ghc-options: -Wnoncanonical-monadfail-instances
529
+
530
+ if impl(ghc >=8.10)
531
+ ghc-options: -Wunused-packages
532
+
533
+ ghc-options: -threaded
534
+ ghc-options: "-with-rtsopts=-M4M -K1K"
511
535
type: exitcode-stdio-1.0
512
536
main-is: MemoryUsageTests.hs
513
537
hs-source-dirs: tests
514
- ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns "-with-rtsopts=-M4M -K1K" -main-is MemoryUsageTests
515
538
other-modules:
516
539
UnitTests.Distribution.Solver.Modular.DSL.TestCaseUtils
517
540
UnitTests.Distribution.Solver.Modular.MemoryUsage
518
541
UnitTests.Options
519
542
build-depends:
520
543
base,
521
- async,
522
544
Cabal,
523
545
cabal-lib-client,
524
546
cabal-install-solver-dsl,
525
- containers,
526
- deepseq,
527
- tagged,
528
547
tasty >= 1.2.3 && <1.4,
529
548
tasty-hunit >= 0.10
530
549
531
- ghc-options: -threaded
532
-
533
- default-language: Haskell2010
534
-
535
550
-- Slow solver tests
536
551
--
537
552
Test-Suite solver-quickcheck
553
+ default-language: Haskell2010
554
+ ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
555
+ if impl(ghc >= 8.0)
556
+ ghc-options: -Wcompat
557
+ -Wnoncanonical-monad-instances
558
+ if impl(ghc < 8.8)
559
+ ghc-options: -Wnoncanonical-monadfail-instances
560
+
561
+ if impl(ghc >=8.10)
562
+ ghc-options: -Wunused-packages
563
+
564
+ ghc-options: -threaded
538
565
type: exitcode-stdio-1.0
539
566
main-is: SolverQuickCheck.hs
540
567
hs-source-dirs: tests
541
- ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -main-is SolverQuickCheck
542
568
other-modules:
543
569
UnitTests.Distribution.Solver.Modular.QuickCheck
544
570
UnitTests.Distribution.Solver.Modular.QuickCheck.Utils
545
571
build-depends:
546
572
base,
547
- async,
548
573
Cabal,
549
574
Cabal-QuickCheck,
550
575
cabal-lib-client,
551
576
cabal-install-solver-dsl,
552
- containers,
553
577
deepseq >= 1.2,
554
578
hashable,
555
579
random,
@@ -559,33 +583,35 @@ Test-Suite solver-quickcheck
559
583
QuickCheck >= 2.14 && <2.15,
560
584
pretty-show >= 1.6.15
561
585
562
- ghc-options: -threaded
563
-
564
- default-language: Haskell2010
565
-
566
-
567
586
-- Integration tests that use the cabal-install code directly
568
587
-- but still build whole projects
569
588
test-suite integration-tests2
589
+ default-language: Haskell2010
590
+ ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
591
+ if impl(ghc >= 8.0)
592
+ ghc-options: -Wcompat
593
+ -Wnoncanonical-monad-instances
594
+ if impl(ghc < 8.8)
595
+ ghc-options: -Wnoncanonical-monadfail-instances
596
+
597
+ if impl(ghc >=8.10)
598
+ ghc-options: -Wunused-packages
599
+
600
+ ghc-options: -threaded
570
601
type: exitcode-stdio-1.0
571
602
main-is: IntegrationTests2.hs
572
603
hs-source-dirs: tests
573
- ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -main-is IntegrationTests2
574
604
other-modules:
575
605
build-depends:
576
606
base,
577
607
bytestring,
578
608
Cabal,
579
609
cabal-lib-client,
580
610
containers,
581
- deepseq,
582
611
directory,
583
- edit-distance,
584
612
filepath,
585
613
tasty >= 1.2.3 && <1.4,
586
614
tasty-hunit >= 0.10,
587
615
tagged
588
616
589
- ghc-options: -threaded
590
- default-language: Haskell2010
591
617
0 commit comments