Skip to content

Commit

Permalink
Use the latest cabal spec in the interactive project init
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed May 29, 2023
1 parent 4a99076 commit f32bd5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/Init/Defaults.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defaultTestDir :: String
defaultTestDir = "test"

defaultCabalVersion :: CabalSpecVersion
defaultCabalVersion = CabalSpecV3_0
defaultCabalVersion = CabalSpecV3_4

defaultPackageType :: PackageType
defaultPackageType = Executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,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
CabalSpecV2_0 -> "2.0 (support for Backpack, internal sub-libs, '^>=' operator)"
Expand Down

0 comments on commit f32bd5b

Please sign in to comment.