Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When generating default Setup.hs use defaultMain
not defaultMainWithHooks defaultUserHooks since the latter is deprecated
  • Loading branch information
dcoutts committed Mar 7, 2008
1 parent 808a34e commit 89f6515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Distribution/Simple/SrcDist.hs
Expand Up @@ -173,7 +173,7 @@ prepareTree pkg_descr verbosity mb_lbi snapshot tmpDir pps date = do
else if lhsExists then copyFileTo verbosity targetDir "Setup.lhs"
else writeFile (targetDir </> "Setup.hs") $ unlines [
"import Distribution.Simple",
"main = defaultMainWithHooks defaultUserHooks"]
"main = defaultMain"]
-- the description file itself
descFile <- getCurrentDirectory >>= findPackageDesc verbosity
let targetDescFile = targetDir </> descFile
Expand Down

0 comments on commit 89f6515

Please sign in to comment.