X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=929270b920e9100ba0895514a6ce5f2ddafea28c;hb=05326242a4036c94a8357551feb22681728d16dd;hp=4c07a23f7b0c6c57f69b73d6c76aa801f045361f;hpb=45b7ef25fe0bdab56b817d17f24db0e725cc7688;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index 4c07a23..929270b 100644 --- a/compiler/typecheck/TcRnMonad.lhs +++ b/compiler/typecheck/TcRnMonad.lhs @@ -40,7 +40,6 @@ import StaticFlags import FastString import Panic import Util -import Exception import System.IO import Data.IORef @@ -543,11 +542,7 @@ discardWarnings thing_inside \begin{code} -#if __GLASGOW_HASKELL__ < 609 -try_m :: TcRn r -> TcRn (Either Exception r) -#else -try_m :: TcRn r -> TcRn (Either ErrorCall r) -#endif +try_m :: TcRn r -> TcRn (Either IOEnvFailure r) -- Does try_m, with a debug-trace on failure try_m thing = do { mb_r <- tryM thing ;