HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduletomland-1.3.3.3Haskell2010

Toml.Parser.Item

SPDX-License-Identifier : MPL-2.0 Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable

This module contains the definition of the TomlItem data type which represents either key-value pair or table name. This data type serves the purpose to be the intermediate representation of parsing a TOML file which will be assembled to TOML AST later.

Synopsis
  • Packagetomland-1.3.3.3
  • Exports5
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourceItem.hs
datadata TomlItem

One item of a TOML file. It could be either:

  • A name of a table

  • A name of a table array

  • Key-value pair

  • Inline table

  • Inline array of tables

Knowing a list of TomlItems, it's possible to construct TOML from this information.

Instances2Eq, Show
  • Eq TomlItemDefined in tomland-1.3.3.3 · Toml.Parser.Item
  • Show TomlItemDefined in tomland-1.3.3.3 · Toml.Parser.Item

parser for "key = val" pairs; can be one of three forms:

  1. key = { ... }

  2. key = [ {...}, {...}, ... ]

  3. key = ...