http://www.haskell.org/haskellwiki/Haskell_in_5_steps
Save this to hello.hs
To run, run
To compile, run
main = putStrLn "Hello, World!"
Save this to hello.hs
To run, run
runhaskell hello.hs
To compile, run
ghc hello.hs
'Programming' 카테고리의 다른 글
(Racket) (system) (0) | 2012.09.12 |
---|---|
(Scheme) call/cc (0) | 2012.09.11 |
(Racket) file->string (0) | 2012.09.09 |
Racket define-syntax-rule (0) | 2012.09.08 |
Lisp: Common Lisp, Scheme, Clojure, Emacs Lisp: a side-by-side reference sheet (0) | 2012.09.08 |