環境はubuntu10.04。単体でいれるよりもplatformでインストールしたほうがいいという記述があったので鵜呑みにしてまんまやった←
cabalはhaskellのパッケージマネージャでhugsはインタプリタらしい。
% sudo add-apt-repository ppa:justinbogner/haskell-platform
% sudo aptitude update
% sudo aptitude install haskell-platform
% sudo aptitude install haskell-platform-doc
% cabal update
% sudo aptitude install hugs
終了はCtrl+D。
コンパイルして実行する場合は以下のようにオプションつけてghc6コマンドを使えばバイナリを吐き出してくれる。
% ghc6 –make hello.hs
あとはこのへんみながらやってみようかな。
追記:hugsいれなくてもghciってのがあった。
