HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduletoml-parser-2.0.2.0Haskell2010

Toml.Syntax.Lexer

This module parses a TOML file into a lazy sequence of tokens. The lexer is aware of nested brackets and equals signs in order to handle TOML's context-sensitive lexing requirements. This context enables the lexer to distinguish between bare keys and various values like: floating-point literals, integer literals, and date literals.

This module uses actions and lexical hooks defined in LexerUtils.

  • 2 types
  • 2 values
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