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