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: readLitChar
Type: ReadS Char
Description: The function showLitChar converts a character to a string using only printable characters, using Haskell source-language escape conventions. The function readLitChar does the reverse.
Related:

Example 1

Input: readLitChar "abcd"

Output: [('a',"bcd")]

Example 2

Input: readLitChar "a\nb\n\NUL"

Output: [('a',"\nb\n\NUL")]