HaskellをMacBookで使う。
まずはインストール。
http://d.hatena.ne.jp/ysano2005/20060708/1152341972
に紹介されている手順通りにインストール。
但し、wgetを入れていなかったのでまず
sudo port install wget
してDarwinPortsからwgetをインストール。そして
% wget http://pugs.blogs.com/dist/ghc-6.5.20060608.tar.bz2 % tar jxvf ghc-6.5.20060608.tar.bz2 % cd ghc-6.5.20060608 % ./configure % sudo make install
最後に~/.profileを編集してパスを通す。
# # Your previous .profile (if any) is saved as .profile.dpsaved # Setting the path for DarwinPorts. export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH
コマンド「ghci」を実行。
___ ___ _ / _ ? /? /?/ __(_) / /_?// /_/ / / | | GHC Interactive, version 6.5.20060608, for Haskell 98. / /_??/ __ / /___| | http://www.haskell.org/ghc/ ?____/?/ /_/?____/|_| Type :? for help. Loading package base-1.0 ... linking ... done. Prelude>
終了は「:q」
さぁ遊ぼう!と思ったら会社に本を忘れてきた orz