toml-parser-1.3.0.0: TOML 1.0.0 parser
Copyright(c) Eric Mertens 2023
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Toml.Semantics

Description

This module extracts the nested Map representation of a TOML file. It detects invalid key assignments and resolves dotted key assignments.

Synopsis

Documentation

data SemanticError Source #

The type of errors that can be generated when resolving all the key used in a TOML document. These errors always pertain to some key to caused one of three conflicts.

Since: 1.3.0.0

data SemanticErrorKind Source #

Enumeration of the kinds of conflicts a key can generate.

Since: 1.3.0.0

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

semantics :: [Expr] -> Either (Located SemanticError) Table Source #

Extract semantic value from sequence of raw TOML expressions or report a semantic error.

Since: 1.3.0.0