| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Digit.Class.D0
Documentation
Minimal complete definition
parse0 :: (D0 d, CharParsing p) => p d Source #
>>>parse (parse0 <* eof) "test" "0" :: Either ParseError BinDigitRight BinDigit0
>>>parse parse0 "test" "0xyz" :: Either ParseError BinDigitRight BinDigit0
>>>isn't _Right (parse parse0 "test" "xyz" :: Either ParseError BinDigit)True