| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Digit.DBb
Documentation
parseBb :: (DBb d, CharParsing p) => p d Source #
>>>parse (parseBb <* eof) "test" "B" :: Either ParseError DigitRight B
>>>parse parseBb "test" "Bxyz" :: Either ParseError DigitRight B
>>>parse (parseBb <* eof) "test" "b" :: Either ParseError DigitRight b
>>>parse parseBb "test" "bxyz" :: Either ParseError DigitRight b
>>>isn't _Right (parse parseBb "test" "xyz" :: Either ParseError Digit)True
\c -> (c `notElem` "Bb") ==> isn't _Right (parse parseBb "test" [c] :: Either ParseError Digit)