Idris2Doc : IotaTime.Pattern

IotaTime.Pattern

(source)

Definitions

dataPatternError : Type
  A failure encountered while parsing or refining a patterned value.

Totality: total
Visibility: public export
Constructors:
UnexpectedEnd : Integer->String->PatternError
UnexpectedCharacter : Integer->String->Char->PatternError
InvalidNumber : Integer->String->PatternError
ValueOutOfRange : String->Integer->Integer->Integer->PatternError
TrailingInput : Integer->String->PatternError
InvalidValue : String->PatternError
PatternParser : Type->Type
Totality: total
Visibility: public export
recordPatternRep : Type->Type->Type
  A bidirectional textual representation of a value.

`state` accumulates fields during parsing. `finish` validates that state and
constructs the value, while `formatPart` projects text from an existing value.

Totality: total
Visibility: export
Constructor: 
MkPattern : state-> (state->EitherPatternErrorvalue) ->PatternParser (EitherPatternError (state->state)) -> (value->String) ->PatternRepstatevalue

Projections:
.finish : PatternRepstatevalue->state->EitherPatternErrorvalue
.formatPart : PatternRepstatevalue->value->String
.initialState : PatternRepstatevalue->state
.parsePart : PatternRepstatevalue->PatternParser (EitherPatternError (state->state))
Pattern : Type->Type->Type
  An opaque bidirectional textual representation of a value.

Totality: total
Visibility: public export
patternInitialState : Patternstatevalue->state
Totality: total
Visibility: export
patternFinish : Patternstatevalue->state->EitherPatternErrorvalue
Totality: total
Visibility: export
patternParsePart : Patternstatevalue->PatternParser (EitherPatternError (state->state))
Totality: total
Visibility: export
patternFormatPart : Patternstatevalue->value->String
Totality: total
Visibility: export
recordLiteralPatternRep : Type
  Literal text that can be appended to a pattern with `<%`.

Totality: total
Visibility: export
Constructor: 
MkLiteralPattern : String->LiteralPatternRep

Projection: 
.literalText : LiteralPatternRep->String
LiteralPattern : Type
  Opaque literal text that can be appended to a pattern with `<%`.

Totality: total
Visibility: public export
string : String->LiteralPattern
Totality: total
Visibility: public export
char : Char->LiteralPattern
Totality: total
Visibility: public export
literalField : Patternstatevalue->String->Patternstatevalue
Totality: total
Visibility: export
(<%) : Patternstatevalue->LiteralPattern->Patternstatevalue
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 7
pairPattern : (combined->left) -> (combined->right) -> (left->right->combined) ->PatternleftStateleft->PatternrightStateright->Pattern (leftState, rightState) combined
Totality: total
Visibility: export
format : Patternstatevalue->value->String
  Format a value using the supplied pattern.

Totality: total
Visibility: public export
parseWith : Patternstatevalue->state->String->EitherPatternErrorvalue
  Parse an entire string using an explicit initial field state.

This is useful for partial patterns whose omitted fields should come from
caller policy rather than the pattern's built-in defaults.

Totality: total
Visibility: public export
parse : Patternstatevalue->String->EitherPatternErrorvalue
  Parse an entire string using a pattern's default initial state.

Totality: total
Visibility: public export
pSignedInteger : PatternIntegerInteger
  An arbitrary-precision signed decimal integer. Formatting is canonical;
parsing also accepts leading zeroes and negative zero.

Totality: total
Visibility: public export
numberUpdatePart : (Integer->state->state) ->Nat->Nat->Integer->Integer->PatternParser (EitherPatternError (state->state))
Totality: total
Visibility: export
namedUpdatePart : List (String, field) -> (field->state->state) ->PatternParser (EitherPatternError (state->state))
Totality: total
Visibility: export
namedConsumePart : ListString->PatternParser (EitherPatternError (state->state))
Totality: total
Visibility: export
spaceNumberUpdatePart : (Integer->state->state) ->Nat->Integer->Integer->PatternParser (EitherPatternError (state->state))
Totality: total
Visibility: export