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:
ab3d1f2
)
[project @ 2005-06-06 09:10:41 by simonmar]
author
simonmar
<unknown>
Mon, 6 Jun 2005 09:10:41 +0000
(09:10 +0000)
committer
simonmar
<unknown>
Mon, 6 Jun 2005 09:10:41 +0000
(09:10 +0000)
Make this build with GHC < 6.03 again
ghc/compiler/main/ErrUtils.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/ErrUtils.lhs
b/ghc/compiler/main/ErrUtils.lhs
index
12d3e43
..
5cfbac7
100644
(file)
--- a/
ghc/compiler/main/ErrUtils.lhs
+++ b/
ghc/compiler/main/ErrUtils.lhs
@@
-75,8
+75,13
@@
data ErrMsg = ErrMsg {
-- So we can throw these things as exceptions
errMsgTc :: TyCon
errMsgTc = mkTyCon "ErrMsg"
+{-# NOINLINE errMsgTc #-}
instance Typeable ErrMsg where
+#if __GLASGOW_HASKELL__ < 603
+ typeOf _ = mkAppTy errMsgTc []
+#else
typeOf _ = mkTyConApp errMsgTc []
+#endif
type WarnMsg = ErrMsg