Cookbook/Compilers and interpreters: Difference between revisions

From HaskellWiki
mNo edit summary
No edit summary
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