Difference between revisions of "Cookbook/Compilers and interpreters"

From HaskellWiki
Jump to navigation Jump to 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

GHC

TODO

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]

Hugs

TODO