Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class DF d where
- parseF :: (DF d, CharParsing p) => p d
Documentation
parseF :: (DF d, CharParsing p) => p d Source #
>>>
parse (parseF <* eof) "test" "F" :: Either ParseError HEXDigit
Right HEXDigitF
>>>
parse parseF "test" "Fxyz" :: Either ParseError HEXDigit
Right HEXDigitF
>>>
isn't _Right (parse parseF "test" "xyz" :: Either ParseError HEXDigit)
True