Commit af3fc863 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

When generating default Setup.hs use defaultMain

not defaultMainWithHooks defaultUserHooks since the latter is deprecated
parent 721a375c
......@@ -170,7 +170,7 @@ prepareTree pkg_descr verbosity mb_lbi snapshot tmpDir pps date = do
else if lhsExists then copyFileTo verbosity targetDir "Setup.lhs"
else writeUTF8File (targetDir </> "Setup.hs") $ unlines [
"import Distribution.Simple",
"main = defaultMainWithHooks defaultUserHooks"]
"main = defaultMain"]
-- the description file itself
descFile <- defaultPackageDesc verbosity
let targetDescFile = targetDir </> descFile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment