X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=a2474c1b86fc3d27c0b8a741f56824aaba683539;hb=ebec49fed627b7dd17e297ddc79a9c677a2ce538;hp=309ce5b337768ebd03b5ee635258c8dc0d474676;hpb=ba16e1bfde86cc6d8fafa9be8a33b3b6172f262f;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index 309ce5b..a2474c1 100644 --- a/compiler/typecheck/TcRnMonad.lhs +++ b/compiler/typecheck/TcRnMonad.lhs @@ -148,11 +148,10 @@ initTcPrintErrors -- Used from the interactive loop only :: HscEnv -> Module -> TcM r - -> IO (Maybe r) + -> IO (Messages, Maybe r) initTcPrintErrors env mod todo = do (msgs, res) <- initTc env HsSrcFile False mod todo - printErrorsAndWarnings (hsc_dflags env) msgs - return res + return (msgs, res) \end{code} %************************************************************************ @@ -547,7 +546,7 @@ discardWarnings thing_inside #if __GLASGOW_HASKELL__ < 609 try_m :: TcRn r -> TcRn (Either Exception r) #else -try_m :: TcRn r -> TcRn (Either ErrorCall r) +try_m :: TcRn r -> TcRn (Either IOException r) #endif -- Does try_m, with a debug-trace on failure try_m thing