Char -pretty -glut
The character type Char is an enumeration whose values represent Unicode (or equivalently ISO/IEC 10646) characters (see http://www.unicode.org/ for details). This set extends the ISO 8859-1 (Latin-1) character set (the first 256 charachers), which is itself an extension of the ASCII character set (the first 128 characters). A character literal in Haskell has type Char.
To convert a Char to or from the corresponding Int value defined by Unicode, use Prelude.toEnum and Prelude.fromEnum from the Prelude.Enum class respectively (or equivalently ord and chr).
Character literal
Parses and returns the specified character.
Determines whether a character can be accurately encoded in a CString. Unrepresentable characters are converted to '?'.
Currently only Latin-1 characters are representable.
The Char type and associated operations.
char c parses a single character c. Returns the parsed character (i.e. c).
> semiColon = char ';'
This lexeme parser parses a single literal character. Returns the literal character value. This parsers deals correctly with escape sequences. The literal character is parsed according to the grammar rules defined in the Haskell report (which matches most programming languages quite closely).
Show more results