Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Data.Digit.DA
- module Data.Digit.Da
- type DAa a = (DA a, Da a)
- parseAa :: (DAa d, CharParsing p) => p d
Documentation
module Data.Digit.DA
module Data.Digit.Da
parseAa :: (DAa d, CharParsing p) => p d Source #
>>>
parse (parseAa <* eof) "test" "A" :: Either ParseError HeXDigit
Right HeXDigitA
>>>
parse parseAa "test" "Axyz" :: Either ParseError HeXDigit
Right HeXDigitA
>>>
parse (parseAa <* eof) "test" "a" :: Either ParseError HeXDigit
Right HeXDigita
>>>
parse parseAa "test" "axyz" :: Either ParseError HeXDigit
Right HeXDigita
>>>
isn't _Right (parse parseAa "test" "xyz" :: Either ParseError HeXDigit)
True