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

Moduleghc-9.10.3GHC2021

GHC.Utils.Lexeme

  • 19 values
  • Packageghc-9.10.3
  • Exports19
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceLexeme.hs

Lexical characteristics of Haskell names

12 declarations

Use these functions to figure what kind of name a FastString represents; these functions do not check that the identifier is valid.

Validating identifiers

7 declarations

These functions (working over plain old Strings) check to make sure that the identifier is valid.

valueokVarIdOcc :: String -> Bool
#

Is this an acceptable alphanumeric variable name, assuming it starts with an acceptable letter?

valueokVarSymOcc :: String -> Bool
#

Is this an acceptable symbolic variable name, assuming it starts with an acceptable character?

valueokConIdOcc :: String -> Bool
#

Is this an acceptable alphanumeric constructor name, assuming it starts with an acceptable letter?

valueokConSymOcc :: String -> Bool
#

Is this an acceptable symbolic constructor name, assuming it starts with an acceptable character?