HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletomland-1.3.3.3Haskell2010

Toml.Type.Key

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

Implementation of key type. The type is used for key-value pairs and table names.

  • 4 types
  • 2 values
  • Packagetomland-1.3.3.3
  • Exports7
  • LanguageHaskell2010
  • LicenceMPL-2.0
  • SourceKey.hs

Core types

5 declarations
newtypenewtype Key
#

Key of value in key = val pair. Represents as non-empty list of key components — Pieces. Key like

site."google.com"

is represented like

Key (Piece "site" :| [Piece "\"google.com\""])

Constructors

Instances9Eq, Ord, Show, IsString, Generic, Semigroup, …
newtypenewtype Piece
#

Represents the key piece of some layer.

Constructors

Instances8Eq, Ord, Show, IsString, Generic, NFData, …
patternpattern (:||) :: Piece -> [Piece] -> Key
#

Bidirectional pattern synonym for constructing and deconstructing Keys.

Key difference

2 declarations
datadata KeysDiff
#

Data represent difference between two keys.

Constructors

Instances2Eq, Show
  • Eq KeysDiffDefined in tomland-1.3.3.3 · Toml.Type.Key
  • Show KeysDiffDefined in tomland-1.3.3.3 · Toml.Type.Key