見出し画像

haskell ubuntu 24.04 install

haskell ubuntu 24.04 install

第1 
For Linux, macOS, FreeBSD or Windows Subsystem 2 for Linux, run this in a terminal:

第2 具体的方法
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
install 時 3ケの選択肢あり
まちがった

第3
GHCupを使ってみる

install されていない

第4 ghc
ghc --version
version 9.47
5の階乗を計算
ghci> product [1..5]
120

version 9.4.7 みにくいが

第5 ghc
hello.hs
main = do { putStrLn "Hello world!"; print (product [1..5]) }
ghc hello.hs

./hello

以上

いいなと思ったら応援しよう!