Moduleghc-10.0.0.20260917GHC2024
GHC.Utils.Lexeme
Synopsis
- value isLexCon
- value isLexVar
- value isLexId
- value isLexSym
- value isLexConId
- value isLexConSym
- value isLexVarId
- value isLexVarSym
- value startsVarSym
- value startsVarId
- value startsConSym
- value startsConId
- value okVarOcc
- value okConOcc
- value okTcOcc
- value okVarIdOcc
- value okVarSymOcc
- value okConIdOcc
- value okConSymOcc
- Packageghc-10.0.0.20260917
- Exports19
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceLexeme.hs
Lexical characteristics of Haskell names
Use these functions to figure what kind of name a FastString represents; these functions do not check that the identifier is valid.
Validating identifiers
These functions (working over plain old Strings) check to make sure that the identifier is valid.
Is this an acceptable variable name?
Is this an acceptable constructor name?
Is this an acceptable type name?
Is this an acceptable alphanumeric variable name, assuming it starts with an acceptable letter?
Is this an acceptable symbolic variable name, assuming it starts with an acceptable character?
Is this an acceptable alphanumeric constructor name, assuming it starts with an acceptable letter?
Is this an acceptable symbolic constructor name, assuming it starts with an acceptable character?