From da3a10238905c825bfc916117f4c4895bb5c6284 Mon Sep 17 00:00:00 2001 From: davve Date: Sun, 3 Sep 2006 16:05:22 +0000 Subject: Change mode to BatchCompile to avoid GHC API bug --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3