From 964049bb3ff056cb551ac913914b9f41b5844cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9cate=20Moonlight?= Date: Thu, 23 Feb 2023 11:16:40 +0100 Subject: [PATCH] Disallow GHC <8.0 for Cabal{,-syntax} & cabal-install-solver (#8794) * Disallow GHC <8.0 closes #8715 * Add changelog entry (cherry picked from commit 9e417fa2b76f6b0ce7e3110cb27038d5a6cca6d9) --- Cabal-syntax/Cabal-syntax.cabal | 2 +- Cabal-tests/Cabal-tests.cabal | 2 +- Cabal/Cabal.cabal | 2 +- cabal-install-solver/cabal-install-solver.cabal | 2 +- cabal-testsuite/cabal-testsuite.cabal | 2 +- changelog.d/pr-8794 | 10 ++++++++++ 6 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 changelog.d/pr-8794 diff --git a/Cabal-syntax/Cabal-syntax.cabal b/Cabal-syntax/Cabal-syntax.cabal index 8bc06f8080c..644d77c8eef 100644 --- a/Cabal-syntax/Cabal-syntax.cabal +++ b/Cabal-syntax/Cabal-syntax.cabal @@ -29,7 +29,7 @@ library build-depends: array >= 0.4.0.1 && < 0.6, - base >= 4.6 && < 5, + base >= 4.9 && < 5, binary >= 0.7 && < 0.9, bytestring >= 0.10.0.0 && < 0.12, containers >= 0.5.0.0 && < 0.7, diff --git a/Cabal-tests/Cabal-tests.cabal b/Cabal-tests/Cabal-tests.cabal index 2ae09c0928e..ce49eab8eb4 100644 --- a/Cabal-tests/Cabal-tests.cabal +++ b/Cabal-tests/Cabal-tests.cabal @@ -51,7 +51,7 @@ test-suite unit-tests build-depends: array , async >=2.2.2 && <2.3 - , base >=0 && <5 + , base >=4.9 && <5 , binary , bytestring , Cabal diff --git a/Cabal/Cabal.cabal b/Cabal/Cabal.cabal index 3ad7d517535..74ff94ca4c2 100644 --- a/Cabal/Cabal.cabal +++ b/Cabal/Cabal.cabal @@ -36,7 +36,7 @@ library build-depends: Cabal-syntax ^>= 3.9, array >= 0.4.0.1 && < 0.6, - base >= 4.6 && < 5, + base >= 4.9 && < 5, bytestring >= 0.10.0.0 && < 0.12, containers >= 0.5.0.0 && < 0.7, deepseq >= 1.3.0.1 && < 1.5, diff --git a/cabal-install-solver/cabal-install-solver.cabal b/cabal-install-solver/cabal-install-solver.cabal index 28d962ad2e1..eacf70a2a77 100644 --- a/cabal-install-solver/cabal-install-solver.cabal +++ b/cabal-install-solver/cabal-install-solver.cabal @@ -121,7 +121,7 @@ library if flag(debug-conflict-sets) cpp-options: -DDEBUG_CONFLICT_SETS - build-depends: base >=4.8 + build-depends: base >=4.9 if flag(debug-tracetree) cpp-options: -DDEBUG_TRACETREE diff --git a/cabal-testsuite/cabal-testsuite.cabal b/cabal-testsuite/cabal-testsuite.cabal index 849ca565d6a..1d918b6bbdf 100644 --- a/cabal-testsuite/cabal-testsuite.cabal +++ b/cabal-testsuite/cabal-testsuite.cabal @@ -26,7 +26,7 @@ common shared default-language: Haskell2010 build-depends: - , base >= 4.6 && <4.18 + , base >= 4.9 && <4.18 -- this needs to match the in-tree lib:Cabal version , Cabal ^>= 3.9.0.0 , Cabal-syntax ^>= 3.9.0.0 diff --git a/changelog.d/pr-8794 b/changelog.d/pr-8794 new file mode 100644 index 00000000000..10babd5d420 --- /dev/null +++ b/changelog.d/pr-8794 @@ -0,0 +1,10 @@ +synopsis: Disallow GHC <8.0 for +packages: Cabal Cabal-syntax cabal-install-solver +prs: #8794 +issues: #8715 #7531 + +description: { + +Disallow GHC <8.0 by restricting the version of base that can be used to at least 4.9 + +}