mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
Add typeclass constraints to ppErrors.
This commit is contained in:
parent
6dc1907669
commit
5008f6f752
@ -428,7 +428,8 @@ memoryForElf opt e =
|
||||
LoadBySegment -> memoryForElfSegments opt e
|
||||
|
||||
-- | Pretty print parser errors to stderr.
|
||||
ppErrors :: FilePath -> [ElfParseError w] -> IO ()
|
||||
ppErrors :: (Eq (ElfWordType w), Num (ElfWordType w), Show (ElfWordType w))
|
||||
=> FilePath -> [ElfParseError w] -> IO ()
|
||||
ppErrors path errl = do
|
||||
when (not (null errl)) $ do
|
||||
hPutStrLn stderr $ "Non-fatal errors during parsing " ++ path
|
||||
|
Loading…
Reference in New Issue
Block a user