Cookbook/Compilers and interpreters: Difference between revisions
< Cookbook
m (Cookbook/General hints moved to Cookbook/Compilers and interpreters) |
No edit summary |
||
Line 3: | Line 3: | ||
== GHCi == | == GHCi == | ||
= | {| class="wikitable" | ||
|- | |||
<haskell> | ! Problem | ||
! Solution | |||
! Examples | |||
|- | |||
| checking types | |||
| :t | |||
|<haskell> | |||
Prelude> :t "Hello" | Prelude> :t "Hello" | ||
"Hello" :: [Char] | "Hello" :: [Char] | ||
</haskell> | </haskell> | ||
|- |
Revision as of 08:19, 31 August 2009
GHC
GHCi
Problem | Solution | Examples |
---|---|---|
checking types | :t | Prelude> :t "Hello"
"Hello" :: [Char] |