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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Utils.Lexeme

  • 19 values

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?