Headers and assignments corresponding to lines of a TOML file
Constructors
KeyValExpr (Key a) (Val a)key value assignment:
key = valueTableExpr (Key a)table:
[key]ArrayTableExpr (Key a)array of tables:
[[key]]
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduletoml-parser-2.0.0.0Haskell2010
This module parses TOML tokens into a list of raw, uninterpreted sections and assignments.
Headers and assignments corresponding to lines of a TOML file
KeyValExpr (Key a) (Val a)key value assignment: key = value
TableExpr (Key a)table: [key]
ArrayTableExpr (Key a)array of tables: [[key]]
Kinds of table headers
TableKindArrayTableKind]
Eq SectionKindDefined in toml-parser-2.0.0.0 · Toml.Syntax.TypesRead SectionKindDefined in toml-parser-2.0.0.0 · Toml.Syntax.TypesShow SectionKindDefined in toml-parser-2.0.0.0 · Toml.Syntax.TypesUnvalidated TOML values. Table are represented as a list of assignments rather than as resolved maps.
Non-empty sequence of dotted simple keys
Parse a list of tokens either returning the first unexpected token or a list of the TOML statements in the file to be processed by Toml.Semantics.