missing type signatures

This commit is contained in:
Simon Michael 2011-08-08 01:34:21 +00:00
parent 46d53f4fcd
commit fd13689339

View File

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