Personal tools

Cookbook/Compilers and interpreters

From HaskellWiki

< Cookbook
Revision as of 08:12, 31 August 2009 by Lenny222 (Talk | contribs)

Jump to: navigation, search

1 GHC

2 GHCi

3 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]