Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DE d where
- parseE :: (DE d, CharParsing p) => p d
Documentation
parseE :: (DE d, CharParsing p) => p d Source #
>>>
parse (parseE <* eof) "test" "E" :: Either ParseError HEXDigit
Right HEXDigitE
>>>
parse parseE "test" "Exyz" :: Either ParseError HEXDigit
Right HEXDigitE
>>>
isn't _Right (parse parseE "test" "xyz" :: Either ParseError HEXDigit)
True