missing type signatures
This commit is contained in:
parent
46d53f4fcd
commit
fd13689339
@ -347,10 +347,13 @@ parseWithCtx ctx p = runParser p ctx ""
|
||||
fromparse :: Either ParseError a -> a
|
||||
fromparse = either parseerror id
|
||||
|
||||
parseerror :: ParseError -> a
|
||||
parseerror e = error' $ showParseError e
|
||||
|
||||
showParseError :: ParseError -> String
|
||||
showParseError e = "parse error at " ++ show e
|
||||
|
||||
showDateParseError :: ParseError -> String
|
||||
showDateParseError e = printf "date parse error (%s)" (intercalate ", " $ tail $ lines $ show e)
|
||||
|
||||
nonspace :: GenParser Char st Char
|
||||
|
||||
Loading…
Reference in New Issue
Block a user