Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
parse5 :: (D5 d, CharParsing p) => p d Source #
>>>
parse (parse5 <* eof) "test" "5" :: Either ParseError DecDigit
Right DecDigit5
>>>
parse parse5 "test" "5xyz" :: Either ParseError DecDigit
Right DecDigit5
>>>
isn't _Right (parse parse5 "test" "xyz" :: Either ParseError DecDigit)
True