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

Name expression type-signatures
Description explicitly provides the type of an expression
Related:
Bibliography: Values, Types, and Other Goodies [ A Gentle Introduction to Haskell ]

Example 1

Input: 12::Double

Output: 12.0

Example 2

Input: read "11" :: Integer

Output: 11

Example 3

Input: read "[12.2, 13.4, 3.123]" :: [Double]

Output: [12.2,13.4,3.123]

Example 4

Input: minimum [2,4,3,1,5] :: Double

Output: 1.0