Idris2Doc : Text.YAML.Types

Text.YAML.Types

(source)

Reexports

importpublic Text.ParseError

Definitions

0Anchor : Type
  Name given in a node's `&anchor` property or referenced
by an `*alias` node.

Totality: total
Visibility: public export
dataStyle : Type
  The presentation style of a scalar node.

Totality: total
Visibility: public export
Constructors:
Plain : Style
  An unquoted scalar
SingleQ : Style
  A 'single quoted' scalar
DoubleQ : Style
  A "double quoted" scalar
Literal : Style
  A literal (`|`) block scalar
Folded : Style
  A folded (`>`) block scalar

Hints:
EqStyle
ShowStyle
dataTag : Type
  A node's tag property.

Totality: total
Visibility: public export
Constructors:
NoTag : Tag
  No tag property was given.
NonSpec : Tag
  The `!` non-specific tag.
Verbatim : String->Tag
  A resolved tag: shorthands have been expanded via the active
`%TAG` handles, verbatim tags (`!<...>`) are taken as given.

Hints:
EqTag
ShowTag
dataEvent : Type
  A YAML parse event.

A well-formed event stream follows this grammar:

```
stream ::= StreamStart document* StreamEnd
document ::= DocStart node DocEnd
node ::= Alias | Scalar
| SeqStart node* SeqEnd
| MapStart (node node)* MapEnd
```

Totality: total
Visibility: public export
Constructors:
StreamStart : Event
StreamEnd : Event
DocStart : Bool->Event
DocEnd : Bool->Event
SeqStart : Bool->MaybeAnchor->Tag->Event
SeqEnd : Event
MapStart : Bool->MaybeAnchor->Tag->Event
MapEnd : Event
Scalar : MaybeAnchor->Tag->Style->String->Event
Alias : Anchor->Event

Hints:
EqEvent
ShowEvent
printEvent : Event->String
  Prints an event in the format used by the YAML test suite's
`test.event` files: https://github.com/yaml/yaml-test-suite

Totality: total
Visibility: export
recordProps : Type
  The properties of a node: at most one anchor and one tag
[spec: c-ns-properties].

Totality: total
Visibility: public export
Constructor: 
MkProps : MaybeAnchor->Tag->Props

Projections:
.anchor : Props->MaybeAnchor
.tag : Props->Tag
.anchor : Props->MaybeAnchor
Totality: total
Visibility: public export
anchor : Props->MaybeAnchor
Totality: total
Visibility: public export
.tag : Props->Tag
Totality: total
Visibility: public export
tag : Props->Tag
Totality: total
Visibility: public export
noProps : Props
Totality: total
Visibility: public export
isNoProps : Props->Bool
Totality: total
Visibility: public export
recordTagEnv : Type
  The tag handles declared by `%TAG` directives; `!` and `!!` have
built-in defaults.

Totality: total
Visibility: public export
Constructor: 
TE : List (String, String) ->TagEnv

Projection: 
.handles : TagEnv->List (String, String)
.handles : TagEnv->List (String, String)
Totality: total
Visibility: public export
handles : TagEnv->List (String, String)
Totality: total
Visibility: public export
defaultEnv : TagEnv
Totality: total
Visibility: public export
dataYErr : Type
  YAML-specific parse errors, used as the custom part of
`InnerError` (see `Text.ParseError`).

Totality: total
Visibility: public export
Constructors:
TabIndent : YErr
BadIndent : YErr
MultipleAnchors : YErr
MultipleTags : YErr
UnknownHandle : String->YErr
DuplicateHandle : String->YErr
BadVersion : String->YErr
BadDirective : String->YErr
TrailingContent : YErr
InvalidKey : YErr
UndefinedAlias : Anchor->YErr
  An alias referencing an anchor that is not in scope.
CyclicAlias : Anchor->YErr
  An alias referencing an anchor whose node is still being
composed, as in `&a [*a]`: such cyclic structures cannot be
represented as finite trees.
DuplicateKey : String->YErr
  A mapping with two equal keys [spec 3.2.1.3]. Carries the
rendered key.
UnexpectedEvent : String->YErr
  The composer met a malformed event sequence. Event streams
produced by `parseEvents` never trigger this. Carries the
rendered event.
UnexpectedEnd : YErr
  The events ended in the middle of a node or document.

Hints:
EqYErr
InterpolationYErr
ShowYErr
resolveTag : TagEnv->String->String->EitherYErrTag
  Resolves a tag shorthand against the active handles
[spec: c-ns-shorthand-tag].

Totality: total
Visibility: export
mergeProps : Props->Props->EitherYErrProps
  Combines properties given on a preceding line with those attached
directly to a node: at most one anchor and one tag in total.

Totality: total
Visibility: export