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

Moduleunicode-data-0.9.0Haskell2010

Unicode.Internal.Char.UnicodeData.GeneralCategory

  • 2 values
  • Packageunicode-data-0.9.0
  • Exports39
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceGeneralCategory.hs

Lookup functions

2 declarations
valuegeneralCategory :: Char -> Int
#

Return the general category of a character

valuegeneralCategoryPlanes0To3 :: Int -> Int
#

Return the general category of a code point in planes 0 to 3

The caller of this function must ensure its parameter is < 0x40000.

General categories

30 declarations
patternpattern UppercaseLetter :: Int
#

General category Lu

patternpattern LowercaseLetter :: Int
#

General category Ll

patternpattern TitlecaseLetter :: Int
#

General category Lt

patternpattern ModifierLetter :: Int
#

General category Lm

patternpattern OtherLetter :: Int
#

General category Lo

patternpattern NonSpacingMark :: Int
#

General category Mn

patternpattern SpacingCombiningMark :: Int
#

General category Mc

patternpattern EnclosingMark :: Int
#

General category Me

patternpattern DecimalNumber :: Int
#

General category Nd

patternpattern LetterNumber :: Int
#

General category Nl

patternpattern OtherNumber :: Int
#

General category No

patternpattern ConnectorPunctuation :: Int
#

General category Pc

patternpattern DashPunctuation :: Int
#

General category Pd

patternpattern OpenPunctuation :: Int
#

General category Ps

patternpattern ClosePunctuation :: Int
#

General category Pe

patternpattern InitialQuote :: Int
#

General category Pi

patternpattern FinalQuote :: Int
#

General category Pf

patternpattern OtherPunctuation :: Int
#

General category Po

patternpattern MathSymbol :: Int
#

General category Sm

patternpattern CurrencySymbol :: Int
#

General category Sc

patternpattern ModifierSymbol :: Int
#

General category Sk

patternpattern OtherSymbol :: Int
#

General category So

patternpattern Space :: Int
#

General category Zs

patternpattern LineSeparator :: Int
#

General category Zl

patternpattern ParagraphSeparator :: Int
#

General category Zp

patternpattern Control :: Int
#

General category Cc

patternpattern Format :: Int
#

General category Cf

patternpattern Surrogate :: Int
#

General category Cs

patternpattern PrivateUse :: Int
#

General category Co

patternpattern NotAssigned :: Int
#

General category Cn

Characters bounds for predicates

7 declarations
patternpattern MaxIsLetter :: Int
#

Maximum codepoint satisfying isLetter

patternpattern MaxIsAlphaNum :: Int
#

Maximum codepoint satisfying isAlphaNum

patternpattern MaxIsLower :: Int
#

Maximum codepoint satisfying isLower

patternpattern MaxIsUpper :: Int
#

Maximum codepoint satisfying isUpper

patternpattern MaxIsNumber :: Int
#

Maximum codepoint satisfying isNumber

patternpattern MaxIsSpace :: Int
#

Maximum codepoint satisfying isSpace

patternpattern MaxIsSeparator :: Int
#

Maximum codepoint satisfying isSeparator