A Value' with trivial annotations
Moduletoml-parser-2.0.0.0Haskell2010
Toml.Semantics.Types
This module provides the type for the semantics of a TOML file. All dotted keys are resolved in this representation. Each table is a Map with a single level of keys.
Values are parameterized over an annotation type to allow values
to be attributed to a file location. When values are constructed
programmatically, there might not be any interesting annotations.
In this case a trivial () unit annotation can be used. The
Value type-synonym and related pattern synonyms can make using
this case more convenient.
- 4 types
- 4 values
- Packagetoml-parser-2.0.0.0
- Exports18
- LanguageHaskell2010
- LicenceISC
- SourceTypes.hs
Unlocated value synonyms
2 declarationsA Table' with trivial annotations
Annotated values
12 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
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
Utilities
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