Personal tools

Cum aflam tipul expresiilor folosind GHCi ??

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
 

Latest revision as of 04:26, 17 September 2011

Scrieti la prompter ":t" urmat de expresie. Valabil si pentru interpretorul Hugs. Acest ":t" este abrevierea de la ":type"

Exemplu:

:t print "Hello World"
print "Hello World" :: IO ()