Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DC d where
- parseC :: (DC d, CharParsing p) => p d
Documentation
parseC :: (DC d, CharParsing p) => p d Source #
>>>
parse (parseC <* eof) "test" "C" :: Either ParseError HEXDigit
Right HEXDigitC
>>>
parse parseC "test" "Cxyz" :: Either ParseError HEXDigit
Right HEXDigitC
>>>
isn't _Right (parse parseC "test" "xyz" :: Either ParseError HEXDigit)
True