Idris2Doc : Data.List.Suffix.Result0

Data.List.Suffix.Result0

(source)

Definitions

dataResult0 : Bool-> (t : Type) ->Listt->Type->Type->Type
  Result of consuming and converting a (possibly strict) prefix
of a list of tokens.

This comes with an erased proof about the number of tokens
consumed. Consider using `Data.List.Suffix.Result` if you need
to keep track of the number of tokens consumed at runtime.

Use this for manually writing high-performance parsers, which
(in the case of strict results) are guaranteed to terminate.
See module `Text.Parse.Manual` for
utilities for consuming and converting prefixes
of tokens, but for a nicer interface, consider using `Text.Parse.Core`
(at the cost of a drop in performance).

@ strict : True if a strict prefix of the list of tokens has
been consumed.
@ t : the type of token consumed.
@ ts : the original list of tokens
@ e : the error type in case of a failure
@ a : the result type

Totality: total
Visibility: public export
Constructors:
Succ0 : a-> (xs : Listt) -> {auto0_ : Suffixbxsts} ->Result0bttsea
Fail0 : e->Result0bttsea

Hints:
FailParse (Result0btts (Bounded (InnerErrory))) y
Functor (Result0bttse)
succ : a-> (0_ : Suffixbxsts) ->Result0bttsea
  Alias for `Succ`, which takes the proof as an
explicit argument

Totality: total
Visibility: public export
fromEither : (xs : Listt) -> {auto0_ : Suffixbxsts} ->Eitherea->Result0bttsea
Totality: total
Visibility: public export
swapOr : Result0 (x|| Delay y) ttsea->Result0 (y|| Delay x) ttsea
Totality: total
Visibility: public export
orSame : Result0 (x|| Delay x) ttsea->Result0xttsea
Totality: total
Visibility: public export
orTrue : Result0 (x|| Delay True) ttsea->Result0Truettsea
Totality: total
Visibility: public export
orFalse : Result0 (x|| Delay False) ttsea->Result0xttsea
Totality: total
Visibility: public export
swapAnd : Result0 (x&& Delay y) ttsea->Result0 (y&& Delay x) ttsea
Totality: total
Visibility: public export
andSame : Result0 (x&& Delay x) ttsea->Result0xttsea
Totality: total
Visibility: public export
andTrue : Result0 (x&& Delay True) ttsea->Result0xttsea
Totality: total
Visibility: public export
andFalse : Result0 (x&& Delay False) ttsea->Result0Falsettsea
Totality: total
Visibility: public export
weaken : Result0xttsea->Result0Falsettsea
Totality: total
Visibility: public export
weakens : Result0Truettsea->Result0xttsea
Totality: total
Visibility: public export
and1 : Result0xttsea->Result0 (x&&y) ttsea
Totality: total
Visibility: public export
and2 : Result0xttsea->Result0 (y&& Delay x) ttsea
Totality: total
Visibility: public export
trans : Result0b1txsea-> (0_ : Suffixb2xsys) ->Result0 (b1|| Delay b2) tysea
Totality: total
Visibility: public export
succT : Result0b1txsea-> {auto0_ : SuffixTruexsys} ->Result0Truetysea
Totality: total
Visibility: public export
succF : Result0b1txsea-> {auto0_ : SuffixTruexsys} ->Result0Falsetysea
Totality: total
Visibility: public export
(<|>) : Result0b1ttsea-> Lazy (Result0b2ttsea) ->Result0 (b1&& Delay b2) ttsea
Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 2
run : ((ts : Listt) ->Result0Truettsea) ->Listt->Eithere (Lista)
  Repeatedly consumes a strict prefix of a list of items
until the whole list is consumed.

This is provably total, due to the strictness of the consuming
function.

Totality: total
Visibility: public export
runDropWhitespace : ((cs : ListChar) ->Result0TrueCharcsea) ->ListChar->Eithere (Lista)
  Repeatedly consumes a strict prefix of a list of characters
until the whole list is consumed. Drops all white space
it encounters (unsing `Prelude.isSpace` to determine, what is
a whitespace character).

This is provably total, due to the strictness of the consuming
function.

Totality: total
Visibility: public export
dataTokError : Type->Type
Totality: total
Visibility: public export
Constructors:
EOI : TokErrort
ExpectedEOI : t->TokErrort
Unexpected : t->TokErrort

Hints:
Eq{arg:18277}=>Eq (TokError{arg:18277})
Interpolationt=>Interpolation (TokErrort)
Show{arg:18277}=>Show (TokError{arg:18277})
0AutoTok0 : Type->Type->Type->Type
  A tokenizing function, which will consume additional characters
from the input string. This can only be used if already some
have been consumed.

Totality: total
Visibility: public export
0SafeTok0 : Type->Type->Type
  A tokenizing function that cannot fail.

Totality: total
Visibility: public export
0OntoTok0 : Type->Type->Type->Type
  A tokenizing function, which will consume additional items
from the input.

Totality: total
Visibility: public export
head : OntoTok0t (TokErrort) t
Totality: total
Visibility: public export
eoi : AutoTok0t (TokErrort) ()
Totality: total
Visibility: public export
takeOnto : SnocListt->Nat->AutoTok0t (TokErrort) (SnocListt)
Totality: total
Visibility: public export
take : Nat->AutoTok0t (TokErrort) (SnocListt)
Totality: total
Visibility: public export
take1 : (n : Nat) -> {auto0_ : IsSuccn} ->OntoTok0t (TokErrort) (SnocListt)
Totality: total
Visibility: public export
takeWhileOnto : SnocListt-> (t->Bool) ->SafeTok0t (SnocListt)
Totality: total
Visibility: public export
takeWhile : (t->Bool) ->SafeTok0t (SnocListt)
Totality: total
Visibility: public export
takeWhile1 : (t->Bool) ->OntoTok0t (TokErrort) (SnocListt)
Totality: total
Visibility: public export
takeUntil : (t->Bool) ->SafeTok0t (SnocListt)
Totality: total
Visibility: public export
takeUntil1 : (t->Bool) ->OntoTok0t (TokErrort) (SnocListt)
Totality: total
Visibility: public export
takeWhileJustOnto : SnocLists-> (t->Maybes) ->SafeTok0t (SnocLists)
Totality: total
Visibility: public export
takeWhileJust : (t->Maybes) ->SafeTok0t (SnocLists)
Totality: total
Visibility: public export
takeWhileJust1 : (t->Maybes) ->OntoTok0t (TokErrort) (SnocLists)
Totality: total
Visibility: public export
accum : s-> (s->t->Maybes) ->SafeTok0ts
Totality: total
Visibility: public export
accum1 : s-> (s->t->Maybes) ->OntoTok0t (TokErrort) s
Totality: total
Visibility: public export
dataAccumRes : Type->Type->Type
Totality: total
Visibility: public export
Constructors:
Done : AccumResstateerr
Cont : state->AccumResstateerr
Error : err->AccumResstateerr
accumErr : s-> (s->x) -> (s->t->AccumResse) ->AutoTok0tex
Totality: total
Visibility: public export
failInParen : Interpolationt=>Bounds->t->Result0b1 (Boundedt) ts (Bounded (InnerErrore)) a->Result0b2 (Boundedt) ts (Bounded (InnerErrore)) x
  General catch-all error generator when parsing within some kind
of opening token: Will fail with an `Unclosed` error if at the
end of input, or with an `Unknown` error wrapping the next token.
Otherwise, will rethrow the current error.

@ b : Bounds of the opening paren or token
@ tok : Opening paren or token
@ res : Current parsing result

Totality: total
Visibility: public export
fail : Interpolationt=>List (Boundedt) ->Result0b (Boundedt) ts (Bounded (InnerErrory)) a
  Catch-all error generator when no other rule applies.

Totality: total
Visibility: public export
result : Interpolationt=>Origin->String->Result0b (Boundedt) ts (Bounded (InnerErrore)) a->Either (ParseErrore) a
Totality: total
Visibility: public export