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

Synopsis
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