Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Dd d where
- parsed :: (Dd d, CharParsing p) => p d
Documentation
parsed :: (Dd d, CharParsing p) => p d Source #
>>>
parse (parsed <* eof) "test" "d" :: Either ParseError HexDigit
Right HexDigitd
>>>
parse parsed "test" "dxyz" :: Either ParseError HexDigit
Right HexDigitd
>>>
isn't _Right (parse parsed "test" "xyz" :: Either ParseError HexDigit)
True