From eddf06ec6b21f68f59eb45596f553c5bcc8eb4b9 Mon Sep 17 00:00:00 2001 From: Matt Renaud Date: Sun, 22 Mar 2020 21:07:15 -0700 Subject: [PATCH] Default to cabal version 2.4 when running cabal init. Cabal version 2.4 is over 2 years old at this point and has numerous additions compared to the current default 1.10. --- cabal-install/Distribution/Client/Config.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cabal-install/Distribution/Client/Config.hs b/cabal-install/Distribution/Client/Config.hs index d0a6f099213..cab54a3dbc7 100644 --- a/cabal-install/Distribution/Client/Config.hs +++ b/cabal-install/Distribution/Client/Config.hs @@ -850,7 +850,7 @@ commentSavedConfig = do }, savedInitFlags = mempty { IT.interactive = toFlag False, - IT.cabalVersion = toFlag (mkVersion [1,10]), + IT.cabalVersion = toFlag (mkVersion [2,4]), IT.language = toFlag Haskell2010, IT.license = toFlag BSD3, IT.sourceDirs = Nothing,