Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A basic YAML representation model. Based on: | https://yaml.org/spec/1.2/spec.html | The Serialization and Presentation properties of YAML, | including directives, comments, anchors, style, formatting, and aliases, are not supported by this model. | In addition, tags are omitted from this model, and non-standard scalars are unsupported.
Synopsis
- data Node
- = NodeMapping (Map Node Node)
- | NodeScalar Scalar
- | NodeSequence [Node]
- _Node :: Name
- _Node_mapping :: FieldName
- _Node_scalar :: FieldName
- _Node_sequence :: FieldName
- data Scalar
- _Scalar :: Name
- _Scalar_bool :: FieldName
- _Scalar_float :: FieldName
- _Scalar_int :: FieldName
- _Scalar_null :: FieldName
- _Scalar_str :: FieldName
Documentation
A YAML node (value)
A union of scalars supported in the YAML failsafe and JSON schemas. Other scalars are not supported here
ScalarBool Bool | Represents a true/false value |
ScalarFloat Double | Represents an approximation to real numbers |
ScalarInt Integer | Represents arbitrary sized finite mathematical integers |
ScalarNull | Represents the lack of a value |
ScalarStr String | A string value |