diff --git a/cabal-install/src/Distribution/Client/Init/Defaults.hs b/cabal-install/src/Distribution/Client/Init/Defaults.hs index a915a5159d3..3852bf835bf 100644 --- a/cabal-install/src/Distribution/Client/Init/Defaults.hs +++ b/cabal-install/src/Distribution/Client/Init/Defaults.hs @@ -165,7 +165,7 @@ myLibHs = myExeHs :: [String] myExeHs = - [ "module Main where" + [ "module Main (main) where" , "" , "main :: IO ()" , "main = putStrLn \"Hello, Haskell!\"" @@ -173,7 +173,7 @@ myExeHs = myLibExeHs :: [String] myLibExeHs = - [ "module Main where" + [ "module Main (main) where" , "" , "import qualified MyLib (someFunc)" , ""