Add typeclass constraints to ppErrors.

This commit is contained in:
Joe Hendrix 2017-07-20 11:02:40 -07:00
parent 6dc1907669
commit 5008f6f752
No known key found for this signature in database
GPG Key ID: 8DFA5FF784098C4F

View File

@ -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