HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletoml-parser-2.0.2.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.

Contents
  1. Parsing
  2. Lexing
  3. Locations
Synopsis

Parsing

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.2.0 · Toml.Syntax.Types
  • Show a => Show (Expr a)Defined in toml-parser-2.0.2.0 · Toml.Syntax.Types
datadata Val a

Unvalidated TOML values. Table are represented as a list of assignments rather than as resolved maps.

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

Lexing

datadata Context

Representation of the current lexer state.

Constructors

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

Lexical token

Constructors

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

Locations

datadata Located a

A value annotated with its text file position

Constructors

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

    Default instance

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

    Default instance

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

    Default instance

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

    Default instance

  • Show a => Show (Located a)Defined in toml-parser-2.0.2.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.2.0 · Toml.Syntax.Position

    Default instance

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

    Default instance

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

    Default instance

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

    Default instance