Skip to content

Commit

Permalink
Merge pull request #12 from FPtje/fp/fix-ghc-9.6
Browse files Browse the repository at this point in the history
Fix incompatibility with GHC 9.6
  • Loading branch information
jbransen authored Aug 8, 2023
2 parents 55d7cda + 6cec92c commit f84e64b
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ import Options
import System.Console.GetOpt
import System.IO.Unsafe(unsafeInterleaveIO)
import System.IO(hPutStr,stderr)
import Control.Monad.Error.Class

data ParserError = DefParserError String
deriving (Show, Eq, Read)

instance Error ParserError where
strMsg x = DefParserError x

uFlags :: [String]
uFlags = concat [ filter (not . null) x | Option _ x _ _ <- options]

Expand Down
10 changes: 0 additions & 10 deletions uuagc/trunk/src-ag/PrintErrorMessages.ag
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ import UU.Scanner.Position(Pos(..), noPos)
import ErrorMessages
import Data.List(mapAccumL)
import GrammarInfo
import qualified Control.Monad.Error.Class as Err
}


{
instance Err.Error Error where
noMsg = Err.strMsg "error"
strMsg = CustomError False noPos . pp
}


{
isError :: Options -> Error -> Bool
isError _ (ParserError _ _ _ ) = True
Expand Down Expand Up @@ -653,4 +644,3 @@ ppInterface :: Show a => a -> PP_Doc
ppInterface inter = wfill ["interface:", show inter]

}

Loading

0 comments on commit f84e64b

Please sign in to comment.