Module Data.Char

Library with some useful functions on characters.

Author: Michael Hanus, Bjoern Peemoeller

Version: January 2015

Summary of exported operations:

isAscii :: Char -> Bool  Deterministic 
Returns true if the argument is an ASCII character.
isLatin1 :: Char -> Bool  Deterministic 
Returns true if the argument is an Latin-1 character.
isAsciiLower :: Char -> Bool  Deterministic 
Returns true if the argument is an ASCII lowercase letter.
isAsciiUpper :: Char -> Bool  Deterministic 
Returns true if the argument is an ASCII uppercase letter.
isControl :: Char -> Bool  Deterministic 
Returns true if the argument is a control character.
toUpper :: Char -> Char  Deterministic 
Converts lowercase into uppercase letters.
toLower :: Char -> Char  Deterministic 
Converts uppercase into lowercase letters.
digitToInt :: Char -> Int  Deterministic 
Converts a (hexadecimal) digit character into an integer.
intToDigit :: Int -> Char  Deterministic 
Converts an integer into a (hexadecimal) digit character.

Exported operations:

isAscii :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII character.

isLatin1 :: Char -> Bool  Deterministic 

Returns true if the argument is an Latin-1 character.

isAsciiLower :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII lowercase letter.

isAsciiUpper :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII uppercase letter.

isControl :: Char -> Bool  Deterministic 

Returns true if the argument is a control character.

toUpper :: Char -> Char  Deterministic 

Converts lowercase into uppercase letters.

toLower :: Char -> Char  Deterministic 

Converts uppercase into lowercase letters.

digitToInt :: Char -> Int  Deterministic 

Converts a (hexadecimal) digit character into an integer.

intToDigit :: Int -> Char  Deterministic 

Converts an integer into a (hexadecimal) digit character.