Skip to content

Commit e5f2f9b

Browse files
authored
Avoid base-orphans that does not work with ghc HEAD (#2291)
1 parent 6742e78 commit e5f2f9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/cabal.project.local

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ if impl(ghc>=9.10.1)
44
-- be very careful to only extend it for absolutely necessary packages
55
-- otherwise we risk running into broken build-plans down the line.
66
allow-newer: *:base, *:template-haskell, *:bytestring, *:text, *:ghc-prim, *:deepseq, *:Cabal
7+
78
if impl(ghc > 9.11)
89
allow-newer: *:containers, *:time
910
constraints: base-compat >=0.14.0, aeson >=2.2.1.0
1011
-- From https://ghc.gitlab.haskell.org/head.hackage/cabal.constraints
1112
constraints: extra ==1.7.14
1213

14+
if impl(ghc >9.13)
15+
constraints: base-orphans <0.9.3 || >0.9.3
16+
1317
-- This prevents hsc2hs from causing old versions of packages from being added to plan.json
1418
allow-newer: hsc2hs:*
1519

0 commit comments

Comments
 (0)