projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6345f29
)
[project @ 2003-05-12 14:12:52 by simonmar]
author
simonmar
<unknown>
Mon, 12 May 2003 14:12:52 +0000
(14:12 +0000)
committer
simonmar
<unknown>
Mon, 12 May 2003 14:12:52 +0000
(14:12 +0000)
Another bugfix to tryM, this time for GHC 5.00--5.04
ghc/compiler/typecheck/TcRnTypes.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcRnTypes.lhs
b/ghc/compiler/typecheck/TcRnTypes.lhs
index
f61115a
..
5f032a5
100644
(file)
--- a/
ghc/compiler/typecheck/TcRnTypes.lhs
+++ b/
ghc/compiler/typecheck/TcRnTypes.lhs
@@
-164,7
+164,7
@@
tryM (TcRn thing) = TcRn (\ env -> tryJust tc_errors (thing env))
#if __GLASGOW_HASKELL__ > 504 || __GLASGOW_HASKELL__ < 500
tc_errors e@(IOException ioe) | isUserError ioe = Just e
#else
- tc_errors e | isUserError e = Just e
+ tc_errors e@(IOException ioe) | isUserError e = Just e
#endif
tc_errors _other = Nothing
-- type checker failures show up as UserErrors only