Programming

(Haskell) Hello World

steloflute 2012. 9. 10. 23:30
http://www.haskell.org/haskellwiki/Haskell_in_5_steps
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