aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 62e9540c..2e06fc8d 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -177,7 +177,7 @@ extractGHCFlags flags = [ flag | Flag_GHCFlag flag <- flags ]
startGHC :: String -> IO (Session, DynFlags)
startGHC libDir = do
GHC.init (Just libDir)
- let ghcMode = JustTypecheck
+ let ghcMode = BatchCompile
session <- newSession ghcMode
flags <- getSessionDynFlags session
flags' <- initPackages flags