haskell 安装与使用

sudo apt-get install haskell-platform
ghci
Prelude> 1+1
2

新建文件 hello.hs

main = putStrLn "Hello, world!"
 ghci hello.hs
*Main> main
Hello, world!

posted @ 2022-08-19 22:58  luoganttcc  阅读(28)  评论(0)    收藏  举报