Skip to content

Commit c395be7

Browse files
authored
Merge pull request #8025 from Bodigrim/3.6
Allow building cabal-3.6 with GHC 9.2
2 parents d505ac2 + 3be194b commit c395be7

File tree

7 files changed

+9
-22
lines changed

7 files changed

+9
-22
lines changed

Cabal-tests/Cabal-tests.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ test-suite parser-tests
8888
main-is: ParserTests.hs
8989
build-depends:
9090
base
91-
, base-compat >=0.11.0 && <0.12
91+
, base-compat >=0.11.0 && <0.13
9292
, bytestring
9393
, Cabal
9494
, Cabal-tree-diff
@@ -166,7 +166,7 @@ test-suite hackage-tests
166166
, filepath
167167

168168
build-depends:
169-
base-compat >=0.11.0 && <0.12
169+
base-compat >=0.11.0 && <0.13
170170
, base-orphans >=0.6 && <0.9
171171
, clock >=0.8 && <0.9
172172
, optparse-applicative >=0.13.2.0 && <0.17

cabal-install/cabal-install-solver/cabal-install-solver.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ library
103103
other-modules: Distribution.Client.Utils.Assertion
104104
build-depends:
105105
, array >=0.4 && <0.6
106-
, base >=4.8 && <4.15
106+
, base >=4.8 && <4.17
107107
, binary >=0.7.3 && <0.9
108108
, bytestring >=0.10.6.0 && <0.12
109109
, Cabal ^>=3.6

cabal-install/cabal-install.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ executable cabal
266266
build-depends:
267267
async >= 2.0 && < 2.3,
268268
array >= 0.4 && < 0.6,
269-
base >= 4.8 && < 4.15,
269+
base >= 4.8 && < 4.17,
270270
base16-bytestring >= 0.1.1 && < 1.1.0.0,
271271
binary >= 0.7.3 && < 0.9,
272272
bytestring >= 0.10.6.0 && < 0.12,

cabal-testsuite/cabal-testsuite.cabal

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ common shared
2626
default-language: Haskell2010
2727

2828
build-depends:
29-
, base >= 4.6 && <4.16
29+
, base >= 4.6 && <4.17
3030
-- this needs to match the in-tree lib:Cabal version
3131
, Cabal == 3.6.2.0
3232

@@ -55,9 +55,9 @@ library
5555
Test.Cabal.ScriptEnv0
5656

5757
build-depends:
58-
, aeson ^>= 1.4.2.0 || ^>=1.5.0.0
58+
, aeson ^>= 1.4.2.0 || ^>= 1.5.0.0 || ^>= 2.0.0.0
5959
, async ^>= 2.2.1
60-
, attoparsec ^>= 0.13.2.2
60+
, attoparsec ^>= 0.13.2.2 || ^>= 0.14.0.0
6161
, base16-bytestring ^>= 0.1.1.6 || ^>= 1.0.0.0
6262
, bytestring ^>= 0.10.0.2 || ^>= 0.11.0.0
6363
, containers ^>= 0.5.0.0 || ^>= 0.6.0.1
@@ -110,5 +110,5 @@ executable setup
110110

111111
custom-setup
112112
-- we only depend on even stable releases of lib:Cabal
113-
setup-depends: Cabal == 2.2.* || == 2.4.* || == 3.0.* || ==3.2.* || ==3.4.*,
113+
setup-depends: Cabal == 2.2.* || == 2.4.* || == 3.0.* || ==3.2.* || ==3.4.* || ==3.6.*,
114114
base, filepath, directory

cabal.project

-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ packages: vendor/cabal-doctest-1.0.8
1414

1515
optional-packages: ./vendored/*/*.cabal
1616

17-
-- Remove after hackage-repo-tool release
18-
allow-newer:
19-
hackage-repo-tool:optparse-applicative
20-
21-
allow-newer:
22-
hackage-security:Cabal
23-
24-
-- https://github.com/haskell-hvr/windns/pull/2
25-
allow-newer: windns-0.1.0.1:base
26-
2717
-- avoiding extra dependencies
2818
constraints: rere -rere-cfg
2919
constraints: these -assoc

cabal.project.validate.libonly

-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,3 @@ package Cabal
1919
ghc-options: -Werror -fno-ignore-asserts
2020
package cabal-testsuite
2121
ghc-options: -Werror -fno-ignore-asserts
22-
23-
-- https://github.com/haskell-hvr/cryptohash-sha256/issues/12
24-
allow-newer: cryptohash-sha256:base

vendor/cabal-doctest-1.0.8/cabal-doctest.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ library
3333
other-modules:
3434
other-extensions:
3535
build-depends:
36-
base >=4.3 && <4.16
36+
base >=4.3 && <4.17
3737
, Cabal >=1.10 && <3.8
3838
, directory
3939
, filepath

0 commit comments

Comments
 (0)