A Value' with trivial annotations
Moduletoml-parser-2.0.0.0Haskell2010
Toml.Semantics
This module extracts a nested Map representation of a TOML file. It detects invalid key assignments and resolves dotted key assignments.
- 6 types
- 5 values
- Packagetoml-parser-2.0.0.0
- Exports21
- LanguageHaskell2010
- LicenceISC
- SourceSemantics.hs
Types
14 declarationsSemantic TOML value with all table assignments resolved.
Instances9Functor, Foldable, Traversable, FromValue, ToValue, Eq, …
Functor Value'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
Foldable Value'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
Traversable Value'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
FromValue ValueDefined in toml-parser-2.0.0.0 · Toml.Schema.FromValueMatches all values, used for pass-through
ToValue ValueDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueIdentity function
Eq a => Eq (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesRead a => Read (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDefault instance
Show a => Show (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDefault instance
() ~ a => IsString (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesConstructs a TOML string literal.
fromString = String
A Table' with trivial annotations
Instances9Functor, Foldable, Traversable, FromValue, Eq, Read, …
Functor Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
Foldable Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
Traversable Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDerived
FromValue TableDefined in toml-parser-2.0.0.0 · Toml.Schema.FromValueEq a => Eq (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDefault instance
Read a => Read (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDefault instance
Show a => Show (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.TypesDefault instance
ToTable (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValue
Validation
3 declarationsExtracts a semantic value from a sequence of raw TOML expressions, or reports a semantic error if one occurs.
This type represents errors generated when resolving keys in a TOML document.
Constructors
SemanticErrorerrorAnn :: aAnnotation associated with offending key
errorKey :: TexterrorKind :: SemanticErrorKind
Instances7Functor, Foldable, Traversable, Eq, Ord, Read, …
Functor SemanticErrorDefined in toml-parser-2.0.0.0 · Toml.SemanticsFoldable SemanticErrorDefined in toml-parser-2.0.0.0 · Toml.SemanticsTraversable SemanticErrorDefined in toml-parser-2.0.0.0 · Toml.SemanticsEq a => Eq (SemanticError a)Defined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Ord a => Ord (SemanticError a)Defined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Read a => Read (SemanticError a)Defined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Show a => Show (SemanticError a)Defined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Enumeration of the kinds of conflicts a key can generate.
Constructors
AlreadyAssignedAttempted to assign to a key that was already assigned
ClosedTableAttempted to open a table already closed
ImplicitlyTableAttempted to open a tables as an array of tables that was implicitly defined to be a table
Instances4Eq, Ord, Read, Show
Eq SemanticErrorKindDefined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Ord SemanticErrorKindDefined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Read SemanticErrorKindDefined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Show SemanticErrorKindDefined in toml-parser-2.0.0.0 · Toml.SemanticsDefault instance
Annotations
4 declarationsReplaces annotations with a unit.
Replaces annotations with a unit.
Extract the top-level annotation from a value.
String representation of the kind of value using TOML vocabulary