Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibility with GHC 9.6 #12

Merged
merged 3 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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