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

Moduleunicode-data-0.4.0.1Haskell2010

Unicode.Char.Numeric.Compat

Compatibility module for numeric character property related functions.

  • 1 value

Predicates

1 declaration
valueisNumber :: Char -> Bool
#

Selects Unicode numeric characters, including digits from various scripts, Roman numerals, et cetera.

This function returns True if its argument has one of the following GeneralCategorys, or False otherwise:

Note: a character may have a numeric value (see numericValue) but return False, because isNumber only tests GeneralCategory: some CJK characters are OtherLetter and do have a numeric value. Use isNumeric to cover those cases as well.

Property
isNumber c == Data.Char.isNumber c

@since 0.3.1 moved to Compat module.