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

ModuleBNFC-2.9.6.3Haskell2010

BNFC.Lex

  • 11 types
  • 38 values
  • PackageBNFC-2.9.6.3
  • Exports50
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLex.x
patternpattern TS :: String -> Int -> Tok
#

Smart constructor for Tok for the sake of backwards compatibility.

datadata TokSymbol
#

Keyword or symbol tokens have a unique ID.

Constructors

Instances3Eq, Ord, Show
  • Eq TokSymbolDefined in BNFC-2.9.6.3 · BNFC.Lex

    Keyword/symbol equality is determined by the unique ID.

  • Ord TokSymbolDefined in BNFC-2.9.6.3 · BNFC.Lex

    Keyword/symbol ordering is determined by the unique ID.

  • Show TokSymbolDefined in BNFC-2.9.6.3 · BNFC.Lex
datadata BTree
#

Finite map from text to token organized as binary search tree.

Constructors

Instances1Show
  • Show BTreeDefined in BNFC-2.9.6.3 · BNFC.Lex
valueresWords :: BTree
#

The keywords and symbols of the language organized as binary search tree.

datadata Posn
#

Constructors

Instances3Eq, Ord, Show
  • Eq PosnDefined in BNFC-2.9.6.3 · BNFC.Lex
  • Ord PosnDefined in BNFC-2.9.6.3 · BNFC.Lex
  • Show PosnDefined in BNFC-2.9.6.3 · BNFC.Lex
valueutf8Encode :: Char -> [Word8]
#

Encode a Haskell String to a list of Word8 values, in UTF8 format.