Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data SemanticError = SemanticError {}
- data SemanticErrorKind
- semantics :: [Expr] -> M Table
Documentation
data SemanticError Source #
The type of errors that can be generated when resolving all the keys used in a TOML document. These errors always pertain to some key that caused one of three conflicts.
Since: 1.3.0.0
Constructors
SemanticError | |
Fields |
Instances
Read SemanticError Source # | Default instance |
Defined in Toml.Semantics Methods readsPrec :: Int -> ReadS SemanticError # readList :: ReadS [SemanticError] # | |
Show SemanticError Source # | Default instance |
Defined in Toml.Semantics Methods showsPrec :: Int -> SemanticError -> ShowS # show :: SemanticError -> String # showList :: [SemanticError] -> ShowS # | |
Eq SemanticError Source # | Default instance |
Defined in Toml.Semantics Methods (==) :: SemanticError -> SemanticError -> Bool # (/=) :: SemanticError -> SemanticError -> Bool # | |
Ord SemanticError Source # | Default instance |
Defined in Toml.Semantics Methods compare :: SemanticError -> SemanticError -> Ordering # (<) :: SemanticError -> SemanticError -> Bool # (<=) :: SemanticError -> SemanticError -> Bool # (>) :: SemanticError -> SemanticError -> Bool # (>=) :: SemanticError -> SemanticError -> Bool # max :: SemanticError -> SemanticError -> SemanticError # min :: SemanticError -> SemanticError -> SemanticError # |
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 |