[project @ 2005-06-06 09:10:41 by simonmar]
authorsimonmar <unknown>
Mon, 6 Jun 2005 09:10:41 +0000 (09:10 +0000)
committersimonmar <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

index 12d3e43..5cfbac7 100644 (file)
@@ -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