Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DA d where
- parseA :: (DA d, CharParsing p) => p d
Documentation
parseA :: (DA d, CharParsing p) => p d Source #
>>>
parse (parseA <* eof) "test" "A" :: Either ParseError HEXDigit
Right HEXDigitA
>>>
parse parseA "test" "Axyz" :: Either ParseError HEXDigit
Right HEXDigitA
>>>
isn't _Right (parse parseA "test" "xyz" :: Either ParseError HEXDigit)
True