[project @ 1999-01-22 13:12:22 by sof]
[ghc-hetmet.git] / ghc / compiler / reader / Lex.lhs
index 70d6b6b..4346902 100644 (file)
@@ -47,7 +47,7 @@ import BasicTypes     ( NewOrData(..), IfaceFlavour(..) )
 import SrcLoc          ( SrcLoc, incSrcLine, srcLocFile )
 
 import Maybes          ( MaybeErr(..) )
-import ErrUtils                ( ErrMsg )
+import ErrUtils                ( Message )
 import Outputable
 
 import FastString
@@ -657,6 +657,7 @@ ifaceKeywordsFM = listToUFM $
         ("__Ux",               ITunfold IAmALoopBreaker),
        
         ("__ccall",            ITccall (False, False, False)),
+        ("__ccall_GC",         ITccall (False, False, True)),
         ("__dyn_ccall",                ITccall (True,  False, False)),
         ("__dyn_ccall_GC",     ITccall (True,  False, True)),
         ("__casm",             ITccall (False, True,  False)),
@@ -758,7 +759,7 @@ doDiscard inStr buf =
 \begin{code}
 type IfM a = StringBuffer      -- Input string
          -> SrcLoc
-         -> MaybeErr a ErrMsg
+         -> MaybeErr a {-error-}Message
 
 returnIf   :: a -> IfM a
 returnIf a s l = Succeeded a
@@ -801,7 +802,7 @@ checkVersion mb@Nothing  s l
 
 -----------------------------------------------------------------
 
-ifaceParseErr :: StringBuffer -> SrcLoc -> ErrMsg
+ifaceParseErr :: StringBuffer -> SrcLoc -> Message
 ifaceParseErr s l
   = hsep [ppr l, ptext SLIT("Interface-file parse error;"),
           ptext SLIT("current input ="), text first_bit]