data DigitType : Type- Totality: total
Visibility: public export
Constructors:
Bin : DigitType Oct : DigitType Dec : DigitType Hex : DigitType
Hints:
Eq DigitType Eq DigitType Interpolation DigitType Interpolation DigitType Ord DigitType Ord DigitType Show DigitType Show DigitType
data CharClass : Type- Totality: total
Visibility: public export
Constructors:
Space : CharClass A whitespace character
Digit : DigitType -> CharClass A digit
Upper : CharClass An upper-case letter
Lower : CharClass A lower-case letter
Alpha : CharClass An upper- or lower-case letter
AlphaNum : CharClass An upper- or lower-case letter or a decimal digit
Hints:
Eq CharClass Eq CharClass Interpolation CharClass Interpolation CharClass Ord CharClass Ord CharClass Show CharClass Show CharClass
data InnerError : Type -> Type- Totality: total
Visibility: public export
Constructors:
Custom : e -> InnerError e A custom error for the current parsing topic
EOI : InnerError e Unexpected end of input
Expected : List String -> String -> InnerError e Expected one of the given tokens but got something else.
ExpectedChar : CharClass -> InnerError e Expected the given type of character
ExpectedEOI : InnerError e Got more input that we expected
InvalidControl : Char -> InnerError e Got an invalid control character
InvalidEscape : InnerError e Got an invalid character escape sequence
OutOfBounds : String -> InnerError e Got a (usually numeric) value that was out of bounds
Unclosed : String -> InnerError e An unclosed opening token
Unknown : String -> InnerError e Got an unknown or invalid token
InvalidByte : Bits8 -> InnerError e An unexpected non-ascii byte, either from an unexpected
mutli-byte codepoint or from altogether invalid unicode
input.
Hints:
Eq err => Eq (InnerError err) Eq err => Eq (InnerError err) FailParse (Either (Bounded (InnerError e))) e FailParse (Either (Bounded (InnerError e))) e Functor InnerError Functor InnerError Interpolation e => Interpolation (InnerError e) Interpolation e => Interpolation (InnerError e) Show err => Show (InnerError err) Show err => Show (InnerError err)
0 BoundedErr : Type -> Type Convenience alias for `Bounded . InnerError`
Totality: total
Visibility: public exporthexChar : Bits8 -> Char Converts a value in the range `[0..15]` to a hexadecimal
lower-case character.
For simplicity, this function assumes the range has been checked.
Therefore, values `>= 15` will return `'f'`.
Totality: total
Visibility: public exporttoHex : Bits8 -> String Pretty prints a byte as two hexadecimal digits.
Example: `toHex 110 === "6e"`.
Totality: total
Visibility: exportinterface FailParse : (Type -> Type) -> Type -> Type- Parameters: m, e
Methods:
parseFail : Bounds -> InnerError e -> m a
Implementations:
FailParse (Either (Bounded (InnerError e))) e FailParse (Either (Bounded (InnerError e))) e
parseFail : FailParse m e => Bounds -> InnerError e -> m a- Totality: total
Visibility: public export custom : FailParse m e => Bounds -> e -> m a- Totality: total
Visibility: public export expected : Interpolation t => FailParse m e => Bounds -> t -> String -> m a- Totality: total
Visibility: public export unclosed : Interpolation t => FailParse m e => Bounds -> t -> m a- Totality: total
Visibility: public export unexpected : Interpolation t => FailParse m e => Bounded t -> m a- Totality: total
Visibility: public export eoi : FailParse m e => m a- Totality: total
Visibility: public export expectedEOI : FailParse m e => Bounds -> m a- Totality: total
Visibility: public export fromVoid : InnerError Void -> InnerError e- Totality: total
Visibility: public export record ParseError : Type -> Type Pairs a parsing error with a text's origin, the error's bound, and
the text itself.
Totality: total
Visibility: public export
Constructor: PE : Origin -> Bounds -> Bounds -> Maybe String -> InnerError e -> ParseError e
Projections:
.bounds : ParseError e -> Bounds Absolute bounds where the error occurred.
.content : ParseError e -> Maybe String Relevant part of the text that was parsed.
.error : ParseError e -> InnerError e The actual error that occurred.
.origin : ParseError e -> Origin Origin of the byte sequence that was parsed.
.relBounds : ParseError e -> Bounds Bounds where the error occurred relative to the string stored
in `content`. See also the docs of `Text.ILex.FC.printFC` for an
explanation why the distinction between relative and absolute bounds
is necessary.
Hints:
Eq e => Eq (ParseError e) Eq e => Eq (ParseError e) Interpolation e => Interpolation (ParseError e) Interpolation e => Interpolation (ParseError e) Show e => Show (ParseError e) Show e => Show (ParseError e)
.origin : ParseError e -> Origin Origin of the byte sequence that was parsed.
Totality: total
Visibility: public exportorigin : ParseError e -> Origin Origin of the byte sequence that was parsed.
Totality: total
Visibility: public export.bounds : ParseError e -> Bounds Absolute bounds where the error occurred.
Totality: total
Visibility: public exportbounds : ParseError e -> Bounds Absolute bounds where the error occurred.
Totality: total
Visibility: public export.relBounds : ParseError e -> Bounds Bounds where the error occurred relative to the string stored
in `content`. See also the docs of `Text.ILex.FC.printFC` for an
explanation why the distinction between relative and absolute bounds
is necessary.
Totality: total
Visibility: public exportrelBounds : ParseError e -> Bounds Bounds where the error occurred relative to the string stored
in `content`. See also the docs of `Text.ILex.FC.printFC` for an
explanation why the distinction between relative and absolute bounds
is necessary.
Totality: total
Visibility: public export.content : ParseError e -> Maybe String Relevant part of the text that was parsed.
Totality: total
Visibility: public exportcontent : ParseError e -> Maybe String Relevant part of the text that was parsed.
Totality: total
Visibility: public export.error : ParseError e -> InnerError e The actual error that occurred.
Totality: total
Visibility: public exporterror : ParseError e -> InnerError e The actual error that occurred.
Totality: total
Visibility: public exporttoParseError : Origin -> String -> Bounded (InnerError e) -> ParseError e Converts a bounded error to a `ParseError` by pairing it with
an origin and the parsed string.
Totality: total
Visibility: exportleftErr : Origin -> String -> Either (Bounded (InnerError e)) a -> Either (ParseError e) a- Totality: total
Visibility: export