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