-
Notifications
You must be signed in to change notification settings - Fork 691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chaging the default cabal spec in cabal init from 3.0 to 3.4 #8977
Comments
Unless I'm missing something big, the change looks like this: diff --git a/cabal-install/src/Distribution/Client/Init/Defaults.hs b/cabal-install/src/Distribution/Client/Init/Defaults.hs
index 8a695d7de..6a17daa81 100644
--- a/cabal-install/src/Distribution/Client/Init/Defaults.hs
+++ b/cabal-install/src/Distribution/Client/Init/Defaults.hs
@@ -68,7 +68,7 @@ defaultTestDir :: String
defaultTestDir = "test"
defaultCabalVersion :: CabalSpecVersion
-defaultCabalVersion = CabalSpecV3_0
+defaultCabalVersion = CabalSpecV3_4
defaultPackageType :: PackageType
defaultPackageType = Executable
diff --git a/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs b/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs
index bf27eb301..34396e0f1 100644
--- a/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs
+++ b/cabal-install/src/Distribution/Client/Init/Interactive/Command.hs
@@ -282,7 +282,7 @@ cabalVersionPrompt flags = getCabalVersion flags $ do
parseCabalVersion "2.4" = CabalSpecV2_4
parseCabalVersion "3.0" = CabalSpecV3_0
parseCabalVersion "3.4" = CabalSpecV3_4
- parseCabalVersion _ = defaultCabalVersion -- 2.4
+ parseCabalVersion _ = defaultCabalVersion -- 3.4
displayCabalVersion :: CabalSpecVersion -> String
displayCabalVersion v = case v of (you'll note that the comment on |
Is there a reason why |
Perhaps if Hackage is not up-to-date between the latest version and the creation of a new package with the new spec. Beyond that I do not think I see other reasons. |
Thank you for taking this! It should be latest, see #8616 |
I'd like to suggest that we update the default spec that is suggested to the user upon
cabal init
.Currently the user is offered
by default, but has to manually input
in order to enjoy the same things + the additions of 3.4.
The text was updated successfully, but these errors were encountered: