| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Digit.Df
- class Df d where
- parsef :: (Df d, CharParsing p) => p d
Documentation
Minimal complete definition
parsef :: (Df d, CharParsing p) => p d Source #
>>>parse (parsef <* eof) "test" "f" :: Either ParseError DigitRight f
>>>parse parsef "test" "fxyz" :: Either ParseError DigitRight f
>>>isn't _Right (parse parsef "test" "xyz" :: Either ParseError Digit)True
\c -> c /= 'f' ==> isn't _Right (parse parsef "test" [c] :: Either ParseError Digit)