X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=c8615118983e0de88a2e947b56560a1b548769ed;hb=fec15030261949611ae41ab4a356a511db1bac4a;hp=abdb44e642add08d5155e4fca3e12218b9bd733f;hpb=cae75f82226638691cfa1e85fc168f4b65ddce4d;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index abdb44e..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} @@ -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 ;