![見出し画像](https://assets.st-note.com/production/uploads/images/161444351/rectangle_large_type_2_c9ba55066ea1b272ab2845db24c6b7f9.png?width=1200)
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
![](https://assets.st-note.com/img/1731311064-yHoNVUgmEFArxzG5P3eaj0cJ.png?width=1200)
第5 ghc
hello.hs
main = do { putStrLn "Hello world!"; print (product [1..5]) }
ghc hello.hs
./hello
以上