@@ -28,9 +28,10 @@ license: BSD-3-Clause
28
28
license-file : LICENSE
29
29
30
30
tested-with :
31
- GHC == 9.8.1
32
- GHC == 9.6.3
33
- GHC == 9.4.7
31
+ GHC == 9.10.1
32
+ GHC == 9.8.2
33
+ GHC == 9.6.5
34
+ GHC == 9.4.8
34
35
GHC == 9.2.8
35
36
GHC == 9.0.2
36
37
GHC == 8.10.7
@@ -129,13 +130,13 @@ common defaults
129
130
-- see `cabal.project.local-ghc-${VERSION}` files
130
131
build-depends :
131
132
, array >= 0.5 && < 0.6
132
- , base >= 4.13 && < 4.20
133
+ , base >= 4.13 && < 4.21
133
134
, binary >= 0.8 && < 0.9
134
135
, bytestring >= 0.10 && < 0.13
135
136
, containers >= 0.6.0 && < 0.8
136
137
, deepseq >= 1.4 && < 1.6
137
138
, directory >= 1.3 && < 1.4
138
- , filepath >= 1.4 && < 1.5
139
+ , filepath >= 1.4 && < 1.6
139
140
, mtl >= 2.2.1 && < 2.4
140
141
-- we use Control.Monad.Except, introduced in mtl-2.2.1
141
142
, pretty >= 1.1 && < 1.2
@@ -148,32 +149,33 @@ common defaults
148
149
-- other dependencies shared by most components
149
150
build-depends :
150
151
, aeson >= 2.1.0.0 && < 2.3
151
- , Cabal >= 3.10 .1.0 && < 3.12
152
- , Cabal-syntax >= 3.10 .1.0 && < 3.12
152
+ , Cabal >= 3.12 .1.0 && < 3.14
153
+ , Cabal-syntax >= 3.12 .1.0 && < 3.14
153
154
-- Cabal-syntax needs to be bound to constrain hackage-security
154
155
-- see https://github.com/haskell/hackage-server/issues/1130
155
156
, fail ^>= 4.9.0
156
- , network >= 3 && < 3.2
157
+ , network >= 3 && < 3.3
157
158
, network-bsd ^>= 2.8
158
159
, network-uri ^>= 2.6
159
160
, parsec ^>= 3.1.13
160
161
, tar ^>= 0.6
161
162
, unordered-containers ^>= 0.2.10
162
163
, vector ^>= 0.12 || ^>= 0.13.0.0
163
- , zlib ^>= 0.6.2
164
+ , zlib ^>= 0.6.2 || ^ >= 0.7.0.0
164
165
165
- ghc-options : -Wall -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-deprecated-flags -funbox-strict-fields
166
-
167
- if impl(ghc >= 8.2 )
168
- ghc-options : -Werror=incomplete-patterns -Werror=missing-methods
166
+ ghc-options :
167
+ -funbox-strict-fields
168
+ -Wall -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-deprecated-flags
169
+ -Werror=incomplete-patterns -Werror=missing-methods
169
170
170
171
if impl(ghc >= 8.10 )
171
172
ghc-options : -Wno-unused-record-wildcards
172
173
174
+ default-extensions : LambdaCase, TupleSections
173
175
other-extensions : CPP, TemplateHaskell
174
176
175
177
176
- library lib-server
178
+ library
177
179
import : defaults
178
180
hs-source-dirs : src
179
181
@@ -407,7 +409,7 @@ library lib-server
407
409
build-depends :
408
410
, HStringTemplate ^>= 0.8
409
411
, HTTP ^>= 4000.3.16 || ^>= 4000.4.1
410
- , QuickCheck ^ >= 2.14
412
+ , QuickCheck >= 2.14 && < 2.16
411
413
, acid-state ^>= 0.16
412
414
, async ^>= 2.2.1
413
415
-- requires bumping http-io-streams
@@ -438,7 +440,7 @@ library lib-server
438
440
, haddock-library ^>= 1.11.0
439
441
-- haddock-library-1.11.0 changed type of markupOrderedList
440
442
-- see https://github.com/haskell/hackage-server/issues/1128
441
- , happstack-server ^>= 7.7.1 || ^>= 7.8.0
443
+ , happstack-server ^>= 7.7.1 || ^>= 7.8.0 || ^ >= 7.9.0
442
444
, hashable ^>= 1.3 || ^>= 1.4
443
445
, hs-captcha ^>= 1.0
444
446
, hslogger ^>= 1.3.1
@@ -452,7 +454,7 @@ library lib-server
452
454
, stm ^>= 2.5.0
453
455
, stringsearch ^>= 0.3.6.6
454
456
, tagged ^>= 0.8.5
455
- , xhtml ^ >= 3000.2.0.0
457
+ , xhtml >= 3000.2.0.0 && < 3000.4
456
458
, xmlgen ^>= 0.6
457
459
, xss-sanitize ^>= 0.3.6
458
460
@@ -472,7 +474,7 @@ library lib-server
472
474
common exe-defaults
473
475
import : defaults
474
476
475
- build-depends : lib -server
477
+ build-depends : hackage -server
476
478
hs-source-dirs : exes
477
479
ghc-options : -threaded -rtsopts
478
480
@@ -493,7 +495,7 @@ executable hackage-mirror
493
495
main-is : MirrorClient.hs
494
496
495
497
build-depends :
496
- -- version constraints inherited from lib -server
498
+ -- version constraints inherited from hackage -server
497
499
, HTTP
498
500
, hackage-security
499
501
@@ -503,7 +505,7 @@ executable hackage-build
503
505
main-is : BuildClient.hs
504
506
505
507
build-depends :
506
- -- version constraints inherited from lib -server
508
+ -- version constraints inherited from hackage -server
507
509
, HTTP
508
510
509
511
-- Runtime dependency only;
@@ -523,7 +525,7 @@ executable hackage-import
523
525
main-is : ImportClient.hs
524
526
525
527
build-depends :
526
- -- version constraints inherited from lib -server
528
+ -- version constraints inherited from hackage -server
527
529
, HTTP
528
530
, async
529
531
, csv
@@ -533,7 +535,7 @@ executable hackage-import
533
535
common test-defaults
534
536
import : defaults
535
537
536
- build-depends : lib -server
538
+ build-depends : hackage -server
537
539
hs-source-dirs : tests
538
540
ghc-options : -threaded -rtsopts -fno-warn-orphans
539
541
@@ -563,9 +565,9 @@ test-suite HighLevelTest
563
565
-- so if this works, it's accidental!
564
566
build-tool-depends : hackage-server :hackage-server
565
567
566
- -- NOTE: lib -server is not a real dependency; it's only used to inherit version constraints
568
+ -- NOTE: hackage -server is not a real dependency; it's only used to inherit version constraints
567
569
build-depends :
568
- -- version constraints inherited from lib -server
570
+ -- version constraints inherited from hackage -server
569
571
, HTTP
570
572
, attoparsec-aeson >= 2.1.0.0 && < 2.3
571
573
, base64-bytestring
@@ -611,6 +613,9 @@ benchmark RevDeps
611
613
build-depends :
612
614
, random ^>= 1.2
613
615
, gauge
616
+ -- gauge does not support base-4.20
617
+ if impl(ghc >= 9.10 )
618
+ buildable : False
614
619
ghc-options : -with-rtsopts=-s
615
620
other-modules : RevDepCommon
616
621
@@ -640,9 +645,9 @@ test-suite CreateUserTest
640
645
-- see note in 'Test-Suite HighLevelTest'
641
646
build-tool-depends : hackage-server :hackage-server
642
647
643
- -- NOTE: lib -server is not a real dependency; it's only used to inherit version constraints
648
+ -- NOTE: hackage -server is not a real dependency; it's only used to inherit version constraints
644
649
build-depends :
645
- -- version constraints inherited from lib -server
650
+ -- version constraints inherited from hackage -server
646
651
, HTTP
647
652
, base64-bytestring
648
653
, random
@@ -657,7 +662,7 @@ test-suite PackageTests
657
662
other-modules : Distribution.Server.Packages.UnpackTest
658
663
659
664
build-depends :
660
- -- version constraints inherited from lib -server
665
+ -- version constraints inherited from hackage -server
661
666
-- component-specific dependencies
662
667
, tasty ^>= 1.5
663
668
, tasty-hunit ^>= 0.10
@@ -670,7 +675,7 @@ test-suite HashTests
670
675
main-is : HashTestMain.hs
671
676
672
677
build-depends :
673
- -- version constraints inherited from lib -server
678
+ -- version constraints inherited from hackage -server
674
679
, base16-bytestring
675
680
, cereal
676
681
, cryptohash-md5
@@ -686,7 +691,7 @@ test-suite DocTests
686
691
type : exitcode-stdio-1.0
687
692
main-is : DocTestMain.hs
688
693
build-depends :
689
- , lib -server
694
+ , hackage -server
690
695
, doctest-parallel ^>= 0.3.0
691
696
-- doctest-parallel-0.2.2 is the first to filter out autogen-modules
692
697
0 commit comments