X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=1fc360550610223fc43c007f3f68728fc3c1097d;hb=99794f66b568709176dd9fc2248a57a21a165556;hp=bf276d599535cdb6685e4afbd8c42567f24c10e4;hpb=a136382590fccdedd791e44599fb54b648407e2b;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index bf276d5..1fc3605 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -273,7 +273,7 @@ import Control.Exception as Exception hiding (handle) import Data.IORef import System.IO import System.IO.Error ( try, isDoesNotExistError ) -import Prelude hiding (init, catch) +import Prelude hiding (init) -- ----------------------------------------------------------------------------- @@ -542,7 +542,7 @@ load s@(Session ref) how_much case mb_graph of Just mod_graph -> catchingFailure $ load2 s how_much mod_graph Nothing -> return Failed - where catchingFailure f = f `catch` \e -> do + where catchingFailure f = f `Exception.catch` \e -> do hsc_env <- readIORef ref -- trac #1565 / test ghci021: -- let bindings may explode if we try to use them after @@ -1987,4 +1987,4 @@ findModule' hsc_env mod_name maybe_pkg = getHistorySpan :: Session -> History -> IO SrcSpan getHistorySpan sess h = withSession sess $ \hsc_env -> return$ InteractiveEval.getHistorySpan hsc_env h -#endif \ No newline at end of file +#endif