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

Module: Prelude
Function: show
Type: Show a => a -> String
Class: Show
Description: converts its argument to a string
Related: lex, read, reads, shows

Example 1

Input: show 12

Output: "12"

Example 2

Input: show True

Output: "True"

Example 3

Input: show [1,2,3]

Output: "[1,2,3]"

Example 4

Input: show (2+4)

Output: "6"

Example 5

Input: show (zip [1,2,3] [5,4,3])

Output: "[(1,5),(2,4),(3,3)]"