| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Digit.Class.D1
Synopsis
- class D1 d where
- parse1 :: (D1 d, CharParsing p) => p d
Documentation
Minimal complete definition
parse1 :: (D1 d, CharParsing p) => p d Source #
>>>parse (parse1 <* eof) "test" "1" :: Either ParseError BinDigitRight BinDigit1
>>>parse parse1 "test" "1xyz" :: Either ParseError BinDigitRight BinDigit1
>>>isn't _Right (parse parse1 "test" "xyz" :: Either ParseError BinDigit)True