Safe Haskell | None |
---|
This module exports common types used throughout
Control.Proxy.Attoparsec.*
- data ParserStatus a
- = Parsing { }
- | Failed {
- psLeftover :: a
- psError :: ParserError
- data SupplyUse
- type ParserSupply a = (SupplyUse, a)
- data BadInput
- = InputTooLong { }
- | MalformedInput { }
- class Eq a => AttoparsecInput a where
- data ParserError = ParserError {
- errorContexts :: [String]
- errorMessage :: String
Proxy control
data ParserStatus a Source
Status of a parsing Proxy
.
Parsing | There is a Receiving |
Failed | A Receiving |
|
Eq a => Eq (ParserStatus a) | |
Show a => Show (ParserStatus a) |
Indicates how should a parsing Proxy
use new input.
type ParserSupply a = (SupplyUse, a)Source
Input supplied to a parsing Proxy
.
The SupplyUse
value indicates how the a
input chunk should be used.
Error types
Reasons for an input value to be unnaceptable.
InputTooLong | |
MalformedInput | |
|
Attoparsec integration
class Eq a => AttoparsecInput a whereSource
A class for valid Attoparsec input types.
data ParserError Source
ParserError | |
|