From e5f2f9b704ab4d7c74bad72c859b2facb50ea23f Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Tue, 10 Dec 2024 10:02:47 +1300 Subject: [PATCH] Avoid base-orphans that does not work with ghc HEAD (#2291) --- test/cabal.project.local | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cabal.project.local b/test/cabal.project.local index 59c077bf3..7d32b6d98 100644 --- a/test/cabal.project.local +++ b/test/cabal.project.local @@ -4,12 +4,16 @@ if impl(ghc>=9.10.1) -- be very careful to only extend it for absolutely necessary packages -- otherwise we risk running into broken build-plans down the line. allow-newer: *:base, *:template-haskell, *:bytestring, *:text, *:ghc-prim, *:deepseq, *:Cabal + if impl(ghc > 9.11) allow-newer: *:containers, *:time constraints: base-compat >=0.14.0, aeson >=2.2.1.0 -- From https://ghc.gitlab.haskell.org/head.hackage/cabal.constraints constraints: extra ==1.7.14 +if impl(ghc >9.13) + constraints: base-orphans <0.9.3 || >0.9.3 + -- This prevents hsc2hs from causing old versions of packages from being added to plan.json allow-newer: hsc2hs:*