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