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

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

Moduleghc-10.0.0.20260917GHC2024

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?