diff --git a/Distribution/Simple/SrcDist.hs b/Distribution/Simple/SrcDist.hs
index f45d5c62a69802d5355438cd3e8b1d461d15843c..9dc6b3cd5b2ea972b2466e959203a7f4a8372f38 100644
--- a/Distribution/Simple/SrcDist.hs
+++ b/Distribution/Simple/SrcDist.hs
@@ -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