From ca94304846617e7b9a975a81c68de8cdb1efbcd9 Mon Sep 17 00:00:00 2001 From: Matt Renaud Date: Thu, 3 Jan 2019 18:23:11 -0800 Subject: [PATCH] Default to cabal version 2.4 when running `cabal init --simple`. --- cabal-install/Distribution/Client/Init.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/cabal-install/Distribution/Client/Init.hs b/cabal-install/Distribution/Client/Init.hs index 6613df9041b..8d43e32b50d 100644 --- a/cabal-install/Distribution/Client/Init.hs +++ b/cabal-install/Distribution/Client/Init.hs @@ -197,6 +197,7 @@ getSimpleProject flags = do flags { nonInteractive = Flag True , simpleProject = Flag True , packageType = Flag LibraryAndExecutable + , cabalVersion = Flag (mkVersion [2,4]) } simpleProjFlag@_ -> flags { simpleProject = simpleProjFlag }