From acbc0f3a5cc9faf0913ff3e270196693816cec41 Mon Sep 17 00:00:00 2001 From: Bas Laarakker Date: Sun, 29 Jan 2023 21:15:34 +0100 Subject: [PATCH] Fix cabal init should not suggest Cabal < 2.0 (#8700) * Fix cabal init should not suggest Cabal < 2.0 * Remove + symbol cabal-version 2.0 --- .../src/Distribution/Client/Init/Interactive/Command.hs | 3 +-- changelog.d/issue-8680 | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 changelog.d/issue-8680 diff --git a/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs b/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs index ca63d80ad37..8bef0f115de 100644 --- a/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs +++ b/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs @@ -286,8 +286,7 @@ cabalVersionPrompt flags = getCabalVersion flags $ do displayCabalVersion :: CabalSpecVersion -> String displayCabalVersion v = case v of - CabalSpecV1_24 -> "1.24 (legacy)" - CabalSpecV2_0 -> "2.0 (+ support for Backpack, internal sub-libs, '^>=' operator)" + CabalSpecV2_0 -> "2.0 (support for Backpack, internal sub-libs, '^>=' operator)" CabalSpecV2_2 -> "2.2 (+ support for 'common', 'elif', redundant commas, SPDX)" CabalSpecV2_4 -> "2.4 (+ support for '**' globbing)" CabalSpecV3_0 -> "3.0 (+ set notation for ==, common stanzas in ifs, more redundant commas, better pkgconfig-depends)" diff --git a/changelog.d/issue-8680 b/changelog.d/issue-8680 new file mode 100644 index 00000000000..e0b516af124 --- /dev/null +++ b/changelog.d/issue-8680 @@ -0,0 +1,9 @@ +synopsis: cabal init should not suggest Cabal < 2.0 +packages: Cabal +issues: #8680 + +description: { + +'cabal init' no longer suggests users to set cabal-version to less than 2.0 + +}