Note: a character may have a numeric value but return False with
the predicate isNumber, because
isNumber only tests
GeneralCategory: some CJK characters are
OtherLetter and do have a numeric value.
Deprecated. Use Unicode.Char.Numeric.Compat.isNumber instead. This function will be a synonym for isNumeric in a future release. See Unicode.Char.Numeric.Compat for behavior compatible with base:Data.Char.
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 but return False with
the predicate isNumber, because
isNumber only tests
GeneralCategory: some CJK characters are
OtherLetter and do have a numeric value.
Note: a character may have a numeric value but return False with
the predicate isNumber, because
isNumber only tests
GeneralCategory: some CJK characters are
OtherLetter and do have a numeric value.
Convert a single digit Char to the corresponding Int. This
function fails unless its argument satisfies isHexDigit, but
recognises both upper- and lower-case hexadecimal digits (that
is, '0'..'9', 'a'..'f', 'A'..'F').
Examples
Characters '0' through '9' are converted properly to
0..9:
Convert an Int in the range 0..15 to the corresponding single
digit Char. This function fails on other inputs, and generates
lower-case hexadecimal digits.