随笔分类 -  Haskell

[haskell] haskell helloworld
摘要:安装(Glasgow Haskell Compiler)sudo apt-get install ghc进入shellghci hello.hsmodule Main whereimport System.Environment main :: IO ()main = do args <- getArgs putStrLn ("Hello, " ++ args !! 0)compiler & exec$ ghc -o hello --make hello.hs [1 of 1] Compiling Main ( hello.hs, hello.o ... 阅读全文

posted @ 2012-06-03 21:32 bluefrog 阅读(503) 评论(0) 推荐(0)