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