HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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

Types

14 declarations
datadata Value' a
#

Semantic 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.Types

    Derived

  • Foldable Value'Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Derived

  • Traversable Value'Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Derived

  • FromValue ValueDefined in toml-parser-2.0.0.0 · Toml.Schema.FromValue

    Matches all values, used for pass-through

  • ToValue ValueDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValue

    Identity function

  • Eq a => Eq (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Nearly default instance except ZonedTime doesn't have an Eq instance. ZonedTime values are equal if their times and time-zones are both equal.

  • Read a => Read (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Default instance

  • Show a => Show (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Default instance

  • () ~ a => IsString (Value' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Constructs a TOML string literal.

    fromString = String
    
newtypenewtype Table' a
#

A table with annotated keys and values.

Constructors

Instances9Functor, Foldable, Traversable, FromValue, Eq, Read, …
  • Functor Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Derived

  • Foldable Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Derived

  • Traversable Table'Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Derived

  • FromValue TableDefined in toml-parser-2.0.0.0 · Toml.Schema.FromValue
  • Eq a => Eq (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Default instance

  • Read a => Read (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Default instance

  • Show a => Show (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Semantics.Types

    Default instance

  • ToTable (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValue
  • ToValue (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValue

Validation

3 declarations
datadata SemanticError a
#

This type represents errors generated when resolving keys in a TOML document.

Constructors

Instances7Functor, Foldable, Traversable, Eq, Ord, Read, …
datadata SemanticErrorKind
#

Enumeration of the kinds of conflicts a key can generate.

Constructors

  • AlreadyAssigned

    Attempted to assign to a key that was already assigned

  • ClosedTable

    Attempted to open a table already closed

  • ImplicitlyTable

    Attempted to open a tables as an array of tables that was implicitly defined to be a table

Instances4Eq, Ord, Read, Show

Annotations

4 declarations
valuevalueAnn :: Value' a -> a
#

Extract the top-level annotation from a value.