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