HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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 = ...