Cookbook/Compilers and interpreters: Difference between revisions
< Cookbook
m (Cookbook/General hints moved to Cookbook/Compilers and interpreters) |
|||
(No difference)
|
Revision as of 08:12, 31 August 2009
GHC
GHCi
Checking Types
To check the type of an expression or function, use the command `:t'
Prelude> :t x
x :: Integer
Prelude> :t "Hello"
"Hello" :: [Char]