Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DB d where
- parseB :: (DB d, CharParsing p) => p d
Documentation
parseB :: (DB d, CharParsing p) => p d Source #
>>>
parse (parseB <* eof) "test" "B" :: Either ParseError HEXDigit
Right HEXDigitB
>>>
parse parseB "test" "Bxyz" :: Either ParseError HEXDigit
Right HEXDigitB
>>>
isn't _Right (parse parseB "test" "xyz" :: Either ParseError HEXDigit)
True