Idris2Doc : Text.ParseError

Text.ParseError

(source)

Definitions

dataDigitType : Type
Totality: total
Visibility: public export
Constructors:
Bin : DigitType
Oct : DigitType
Dec : DigitType
Hex : DigitType

Hints:
EqDigitType
EqDigitType
InterpolationDigitType
InterpolationDigitType
OrdDigitType
OrdDigitType
ShowDigitType
ShowDigitType
dataCharClass : 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:
EqCharClass
EqCharClass
InterpolationCharClass
InterpolationCharClass
OrdCharClass
OrdCharClass
ShowCharClass
ShowCharClass
dataInnerError : Type->Type
Totality: total
Visibility: public export
Constructors:
Custom : e->InnerErrore
  A custom error for the current parsing topic
EOI : InnerErrore
  Unexpected end of input
Expected : ListString->String->InnerErrore
  Expected one of the given tokens but got something else.
ExpectedChar : CharClass->InnerErrore
  Expected the given type of character
ExpectedEOI : InnerErrore
  Got more input that we expected
InvalidControl : Char->InnerErrore
  Got an invalid control character
InvalidEscape : InnerErrore
  Got an invalid character escape sequence
OutOfBounds : String->InnerErrore
  Got a (usually numeric) value that was out of bounds
Unclosed : String->InnerErrore
  An unclosed opening token
Unknown : String->InnerErrore
  Got an unknown or invalid token
InvalidByte : Bits8->InnerErrore
  An unexpected non-ascii byte, either from an unexpected
mutli-byte codepoint or from altogether invalid unicode
input.

Hints:
Eqerr=>Eq (InnerErrorerr)
Eqerr=>Eq (InnerErrorerr)
FailParse (Either (Bounded (InnerErrore))) e
FailParse (Either (Bounded (InnerErrore))) e
FunctorInnerError
FunctorInnerError
Interpolatione=>Interpolation (InnerErrore)
Interpolatione=>Interpolation (InnerErrore)
Showerr=>Show (InnerErrorerr)
Showerr=>Show (InnerErrorerr)
0BoundedErr : Type->Type
  Convenience alias for `Bounded . InnerError`

Totality: total
Visibility: public export
hexChar : 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 export
toHex : Bits8->String
  Pretty prints a byte as two hexadecimal digits.

Example: `toHex 110 === "6e"`.

Totality: total
Visibility: export
interfaceFailParse : (Type->Type) ->Type->Type
Parameters: m, e
Methods:
parseFail : Bounds->InnerErrore->ma

Implementations:
FailParse (Either (Bounded (InnerErrore))) e
FailParse (Either (Bounded (InnerErrore))) e
parseFail : FailParseme=>Bounds->InnerErrore->ma
Totality: total
Visibility: public export
custom : FailParseme=>Bounds->e->ma
Totality: total
Visibility: public export
expected : Interpolationt=>FailParseme=>Bounds->t->String->ma
Totality: total
Visibility: public export
unclosed : Interpolationt=>FailParseme=>Bounds->t->ma
Totality: total
Visibility: public export
unexpected : Interpolationt=>FailParseme=>Boundedt->ma
Totality: total
Visibility: public export
eoi : FailParseme=>ma
Totality: total
Visibility: public export
expectedEOI : FailParseme=>Bounds->ma
Totality: total
Visibility: public export
fromVoid : InnerErrorVoid->InnerErrore
Totality: total
Visibility: public export
recordParseError : 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->MaybeString->InnerErrore->ParseErrore

Projections:
.bounds : ParseErrore->Bounds
  Absolute bounds where the error occurred.
.content : ParseErrore->MaybeString
  Relevant part of the text that was parsed.
.error : ParseErrore->InnerErrore
  The actual error that occurred.
.origin : ParseErrore->Origin
  Origin of the byte sequence that was parsed.
.relBounds : ParseErrore->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:
Eqe=>Eq (ParseErrore)
Eqe=>Eq (ParseErrore)
Interpolatione=>Interpolation (ParseErrore)
Interpolatione=>Interpolation (ParseErrore)
Showe=>Show (ParseErrore)
Showe=>Show (ParseErrore)
.origin : ParseErrore->Origin
  Origin of the byte sequence that was parsed.

Totality: total
Visibility: public export
origin : ParseErrore->Origin
  Origin of the byte sequence that was parsed.

Totality: total
Visibility: public export
.bounds : ParseErrore->Bounds
  Absolute bounds where the error occurred.

Totality: total
Visibility: public export
bounds : ParseErrore->Bounds
  Absolute bounds where the error occurred.

Totality: total
Visibility: public export
.relBounds : ParseErrore->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
relBounds : ParseErrore->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 : ParseErrore->MaybeString
  Relevant part of the text that was parsed.

Totality: total
Visibility: public export
content : ParseErrore->MaybeString
  Relevant part of the text that was parsed.

Totality: total
Visibility: public export
.error : ParseErrore->InnerErrore
  The actual error that occurred.

Totality: total
Visibility: public export
error : ParseErrore->InnerErrore
  The actual error that occurred.

Totality: total
Visibility: public export
toParseError : Origin->String->Bounded (InnerErrore) ->ParseErrore
  Converts a bounded error to a `ParseError` by pairing it with
an origin and the parsed string.

Totality: total
Visibility: export
leftErr : Origin->String->Either (Bounded (InnerErrore)) a->Either (ParseErrore) a
Totality: total
Visibility: export