From 2dc723b562fc203fd741b12798f02726dd04dfe3 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn <a.pelenitsyn@gmail.com> Date: Tue, 13 Sep 2022 19:48:02 -0400 Subject: [PATCH] cabal-testsuite: add conditional to setup-depends to make all build plans viable from 7.x through 9.4 --- cabal-testsuite/cabal-testsuite.cabal | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cabal-testsuite/cabal-testsuite.cabal b/cabal-testsuite/cabal-testsuite.cabal index 1209a7d369..6df8128320 100644 --- a/cabal-testsuite/cabal-testsuite.cabal +++ b/cabal-testsuite/cabal-testsuite.cabal @@ -114,6 +114,10 @@ custom-setup -- we only depend on even stable releases of lib:Cabal -- and due to Custom complexity and ConstraintSetupCabalMaxVersion -- it can't be the current version - setup-depends: Cabal == 3.6.*, - Cabal-syntax == 3.6.*, - base, filepath, directory + if impl(ghc < 8) + setup-depends: Cabal == 3.6.*, + Cabal-syntax == 3.6.*, + else + setup-depends: Cabal == 3.8.*, + Cabal-syntax == 3.8.*, + setup-depends: base, filepath, directory -- GitLab