X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=c8615118983e0de88a2e947b56560a1b548769ed;hb=c2e459becafc3e80832eed152a1f9312a6d3580e;hp=7f1a7fe5d34d42ebc430e60bdf0701a00cddbacc;hpb=fce61e356063836debcc579e336e99a65d61284e;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index 7f1a7fe..c861511 100644 --- a/compiler/typecheck/TcRnMonad.lhs +++ b/compiler/typecheck/TcRnMonad.lhs @@ -40,10 +40,10 @@ import StaticFlags import FastString import Panic import Util - +import Exception + import System.IO import Data.IORef -import Control.Exception import Control.Monad \end{code} @@ -103,7 +103,7 @@ initTc hsc_env hsc_src keep_rn_syntax mod do_this tcg_rn_decls = maybe_rn_syntax emptyRnGroup, tcg_binds = emptyLHsBinds, - tcg_deprecs = NoDeprecs, + tcg_warns = NoWarnings, tcg_insts = [], tcg_fam_insts= [], tcg_rules = [], @@ -537,7 +537,11 @@ 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 -- Does try_m, with a debug-trace on failure try_m thing = do { mb_r <- tryM thing ;