ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | >> Char << | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Char
Function: chr
Type: Int -> Char
Description: The ord and chr functions are fromEnum and toEnum restricted to the type Char.
Related:

Example 1

Input: chr 97

Output: 'a'

Example 2

Input: chr 10

Output: '\n'

Example 3

Input: chr 0

Output: '\NUL'