Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Data.Digit.DC
- module Data.Digit.Dc
- type DCc a = (DC a, Dc a)
- parseCc :: (DCc d, CharParsing p) => p d
Documentation
module Data.Digit.DC
module Data.Digit.Dc
parseCc :: (DCc d, CharParsing p) => p d Source #
>>>
parse (parseCc <* eof) "test" "C" :: Either ParseError HeXDigit
Right HeXDigitC
>>>
parse parseCc "test" "Cxyz" :: Either ParseError HeXDigit
Right HeXDigitC
>>>
parse (parseCc <* eof) "test" "c" :: Either ParseError HeXDigit
Right HeXDigitc
>>>
parse parseCc "test" "cxyz" :: Either ParseError HeXDigit
Right HeXDigitc
>>>
isn't _Right (parse parseCc "test" "xyz" :: Either ParseError HeXDigit)
True