Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Da d where
- class Db d where
- class Dc d where
- class Dd d where
- class De d where
- class Df d where
- parsea :: (Da d, CharParsing p) => p d
- parseb :: (Db d, CharParsing p) => p d
- parsec :: (Dc d, CharParsing p) => p d
- parsed :: (Dd d, CharParsing p) => p d
- parsee :: (De d, CharParsing p) => p d
- parsef :: (Df d, CharParsing p) => p d
Classes
Parsers
parsea :: (Da d, CharParsing p) => p d Source #
>>>
parse (parsea <* eof) "test" "a" :: Either ParseError HexDigit
Right HexDigita
>>>
parse parsea "test" "axyz" :: Either ParseError HexDigit
Right HexDigita
>>>
isn't _Right (parse parsea "test" "xyz" :: Either ParseError HexDigit)
True
parseb :: (Db d, CharParsing p) => p d Source #
>>>
parse (parseb <* eof) "test" "b" :: Either ParseError HexDigit
Right HexDigitb
>>>
parse parseb "test" "bxyz" :: Either ParseError HexDigit
Right HexDigitb
>>>
isn't _Right (parse parseb "test" "xyz" :: Either ParseError HexDigit)
True
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
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
parsee :: (De d, CharParsing p) => p d Source #
>>>
parse (parsee <* eof) "test" "e" :: Either ParseError HexDigit
Right HexDigite
>>>
parse parsee "test" "exyz" :: Either ParseError HexDigit
Right HexDigite
>>>
isn't _Right (parse parsee "test" "xyz" :: Either ParseError HexDigit)
True
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