Safe Haskell | Safe-Inferred |
---|---|
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