Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singEnumInstance :: OptionsMonad q => Name -> q [Dec]singletons-th Data.Singletons.TH Create instance of SEnum for the given type
singEnumInstances :: OptionsMonad q => [Name] -> q [Dec]singletons-th Data.Singletons.TH Create instances of SEnum for the given types
DecimalNumber :: GeneralCategoryspeculate Test.Speculate.Utils Nd: Number, Decimal
LetterNumber :: GeneralCategoryspeculate Test.Speculate.Utils Nl: Number, Letter
OtherNumber :: GeneralCategoryspeculate Test.Speculate.Utils No: Number, Other
-
speculate Test.Speculate.Utils Selects alphabetic or numeric Unicode characters. Note that numeric digits outside the ASCII range, as well as numeric characters which aren't digits, are selected by this function but not by isDigit. Such characters may be part of identifiers but are not used by the printer and reader to represent numbers, e.g., Roman numerals like V, full-width digits like '1' (aka '65297'). This function returns True if its argument has one of the following GeneralCategorys, or False otherwise:
-
speculate Test.Speculate.Utils 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:
These classes are defined in the Unicode Character Database, part of the Unicode standard. The same document defines what is and is not a "Number".Examples
Basic usage:>>> isNumber 'a' False >>> isNumber '%' False >>> isNumber '3' True
ASCII '0' through '9' are all numbers:>>> and $ map isNumber ['0'..'9'] True
Unicode Roman numerals are "numbers" as well:>>> isNumber 'Ⅸ' True
-
text-latin1 Text.Ascii Test if a character is either an ASCII letter or a decimal digit.
-
text-latin1 Text.Ascii Test if a byte is the encoding of either an ASCII letter or a decimal digit.
-
text-latin1 Text.Latin1 Test if a character is either a Latin-1 letter or a decimal digit.