ascii-predicates-1.0.1.3: Various categorizations of ASCII characters
Safe HaskellSafe-Inferred
LanguageGHC2021

ASCII.ListsAndPredicates

Synopsis

Re-exported modules

Notes

The two modules re-exported here present the same information in two different forms:

  • As a list of all ASCII characters with some classification;
  • As a function that tests whether a particular character belongs to the classification.

Each list contains exactly the characters for which its corresponding predicate is true.

>>> controlCodes == filter isControl all
True
>>> printableCharacters == filter isPrint all
True
>>> letters == filter isLetter all
True
>>> capitalLetters == filter isUpper all
True
>>> smallLetters == filter isLower all
True
>>> digits == filter isDigit all
True
>>> numbers == filter isNumber all
True
>>> octDigits == filter isOctDigit all
True
>>> hexDigits == filter isHexDigit all
True
>>> visibleCharacters == filter isVisible all
True