Toml.Type

tomland-1.3.3.3: Bidirectional TOML serialization

Copyright | (c) 2018-2022 Kowainik
License | MPL-2.0
Maintainer | Kowainik <xrom.xkov@gmail.com>
Stability | Stable
Portability | Portable
Safe Haskell | None
Language | Haskell2010

Toml.Type

Description

Core types for TOML AST.

Synopsis

- module Toml.Type.TOML
- module Toml.Type.Printer
- module Toml.Type.PrefixTree
- module Toml.Type.Key
- module Toml.Type.UValue
- module Toml.Type.Value
- module Toml.Type.AnyValue

# Documentation

Main TOML AST data type. Text is converted to `TOML` first. All codecs work with the `TOML` type instead of raw text.

module Toml.Type.TOML

Pretty-printer for `TOML`.

module Toml.Type.Printer

`PrefixMap` and `PrefixTree` types that help representing `TOML` AST.

module Toml.Type.PrefixTree

Key in key-value pairs and table names. Also `Key` in `PrefixMap`.

module Toml.Type.Key

Untyped value obtained directly from parsing.

module Toml.Type.UValue

Typed `Value`. Result of type-checking `UValue`.

module Toml.Type.Value

Existential wrapper around `Value` to be able to store `Value`s of different types inside lists or other containers like `Map` or `HashMap`.

module Toml.Type.AnyValue