| 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)