X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Freader%2FLex.lhs;h=11d57749fcff4c29657a4aa25305b8cbe82689d4;hb=a6eede3173cee960884e732f40b0998cf84ae015;hp=70d6b6b0a89cff4fa481f9f50295bb3c7250a38b;hpb=35dff9ff5076f0a387f6b57d9c19b8f5fc00f9a2;p=ghc-hetmet.git diff --git a/ghc/compiler/reader/Lex.lhs b/ghc/compiler/reader/Lex.lhs index 70d6b6b..11d5774 100644 --- a/ghc/compiler/reader/Lex.lhs +++ b/ghc/compiler/reader/Lex.lhs @@ -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 @@ -758,7 +758,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 +801,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]