Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DD d where
- parseD :: (DD d, CharParsing p) => p d
Documentation
parseD :: (DD d, CharParsing p) => p d Source #
>>>
parse (parseD <* eof) "test" "D" :: Either ParseError HEXDigit
Right HEXDigitD
>>>
parse parseD "test" "Dxyz" :: Either ParseError HEXDigit
Right HEXDigitD
>>>
isn't _Right (parse parseD "test" "xyz" :: Either ParseError HEXDigit)
True