HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletoml-parser-2.0.0.0Haskell2010

Toml.Syntax

These are the low-level processing functions for transforming concrete TOML syntax into abstract TOML syntax. This module does not do any semantic validation of the parsed TOML.

  • 7 types
  • 3 values

Parsing

4 declarations
typetype Key a = NonEmpty (a, Text)
#

Non-empty sequence of dotted simple keys

datadata Expr a
#

Headers and assignments corresponding to lines of a TOML file

Constructors

Instances2Read, Show
  • Read a => Read (Expr a)Defined in toml-parser-2.0.0.0 · Toml.Syntax.Types
  • Show a => Show (Expr a)Defined in toml-parser-2.0.0.0 · Toml.Syntax.Types

Lexing

3 declarations
datadata Context
#

Representation of the current lexer state.

Constructors

Instances1Show
  • Show ContextDefined in toml-parser-2.0.0.0 · Toml.Syntax.LexerUtils
datadata Token
#

Lexical token

Constructors

Instances2Read, Show
  • Read TokenDefined in toml-parser-2.0.0.0 · Toml.Syntax.Token
  • Show TokenDefined in toml-parser-2.0.0.0 · Toml.Syntax.Token

Locations

3 declarations
datadata Located a
#

A value annotated with its text file position

Constructors

Instances5Functor, Foldable, Traversable, Read, Show
  • Functor LocatedDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Foldable LocatedDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Traversable LocatedDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Read a => Read (Located a)Defined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Show a => Show (Located a)Defined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

datadata Position
#

A position in a text file

Constructors

Instances4Eq, Ord, Read, Show
  • Eq PositionDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Ord PositionDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Read PositionDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance

  • Show PositionDefined in toml-parser-2.0.0.0 · Toml.Syntax.Position

    Default instance