X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FHscMain.lhs;h=3e37f5bac6cc7631983e846a44af8a72b32a7fe0;hp=36e53a83f93a7c1a7fa9117fca0c35f88937a930;hb=0af06ed99ed56341adfdda4a92a0a36678780109;hpb=abda57697c42103c025902f54ba3afa6d6e22692 diff --git a/compiler/main/HscMain.lhs b/compiler/main/HscMain.lhs index 36e53a8..3e37f5b 100644 --- a/compiler/main/HscMain.lhs +++ b/compiler/main/HscMain.lhs @@ -430,7 +430,7 @@ makeSimpleDetails hsc_env tc_result = mkBootModDetailsTc hsc_env tc_result It's the task of the compilation proper to compile Haskell, hs-boot and -core files to either byte-code, hard-code (C, asm, Java, ect) or to +core files to either byte-code, hard-code (C, asm, LLVM, ect) or to nothing at all (the module is still parsed and type-checked. This feature is mostly used by IDE's and the likes). Compilation can happen in either 'one-shot', 'batch', 'nothing', @@ -1132,7 +1132,7 @@ hscTcExpr -- Typecheck an expression (but don't run it) hscTcExpr hsc_env expr = runHsc hsc_env $ do maybe_stmt <- hscParseStmt expr case maybe_stmt of - Just (L _ (ExprStmt expr _ _)) -> + Just (L _ (ExprStmt expr _ _ _)) -> ioMsgMaybe $ tcRnExpr hsc_env (hsc_IC hsc_env) expr _ -> liftIO $ throwIO $ mkSrcErr $ unitBag $ mkPlainErrMsg noSrcSpan