ZVON > References > Haskell reference |
Intro / Search / ZVON |
| 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 ] |
Input: 12::Double
Output: 12.0
Input: read "11" :: Integer
Output: 11
Input: read "[12.2, 13.4, 3.123]" :: [Double]
Output: [12.2,13.4,3.123]
Input: minimum [2,4,3,1,5] :: Double
Output: 1.0