| Safe Haskell | None |
|---|
Control.Proxy.Attoparsec.Types
Description
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.
Constructors
| Parsing | There is a Receiving |
| Failed | A Receiving |
Fields
| |
Instances
| 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.
Constructors
| InputTooLong | |
| MalformedInput | |
Fields
| |
Attoparsec integration
class Eq a => AttoparsecInput a whereSource
A class for valid Attoparsec input types.
Methods
parse :: Parser a b -> a -> IResult a bSource
Run a Parser with input a.
Tests whether a is empty.
Skips the first n elements from a and returns the rest.
Number of elements in a.
Instances
data ParserError Source
Constructors
| ParserError | |
Fields
| |
Instances