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: showLitChar
Type: Char -> ShowS
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: showLitChar 'a' "AA"

Output: "aAA"

Example 2

Input: showLitChar '\n' "X\nX"

Output: "\\nX\nX"