[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
浙公网安备 33010602011771号