Personal tools

Cookbook/Compilers and interpreters

From HaskellWiki

< Cookbook(Difference between revisions)
Jump to: navigation, search
m
Line 10: Line 10:
 
! Solution
 
! Solution
 
! Examples
 
! Examples
  +
|-
  +
| checking definitions
  +
| :i
  +
|<haskell>
  +
Prelude> :i length
  +
length :: [a] -> Int -- Defined in GHC.List
  +
</haskell>
 
|-
 
|-
 
| checking types
 
| checking types

Revision as of 08:25, 31 August 2009

1 GHC

TODO

2 GHCi

Problem Solution Examples
checking definitions  :i
Prelude> :i length
length :: [a] -> Int    -- Defined in GHC.List
checking types  :t
Prelude> :t "Hello"
"Hello" :: [Char]

3 Hugs

TODO