tkuchikiの日記

Linux やプログラミングについて書きます。

Mac に Haskell の環境を構築する手順

homebrew を最新版にする

$ brew update

元々入っていたので upgrade したが、通常は install

$ brew upgrade haskell-platform
==> Upgrading 1 outdated package, with result:
haskell-platform 2013.2.0.0
==> Upgrading haskell-platform
==> Installing haskell-platform dependency: ghc
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/ghc-7.6.3.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ghc-7.6.3.lion.bottle.tar.gz
==> Caveats
This brew is for GHC only; you might also be interested in haskell-platform.
==> Summary
?  /usr/local/Cellar/ghc/7.6.3: 5286 files, 776M
==> Installing haskell-platform
==> Downloading http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2013.2.0.0
==> make install
==> Caveats
Run `cabal update` to initialize the package list.

If you are replacing a previous version of haskell-platform, you may want
to unregister packages belonging to the old version. You can find broken
packages using:
  ghc-pkg check --simple-output
You can uninstall them using:
  ghc-pkg check --simple-output | xargs -n 1 ghc-pkg unregister --force
==> Summary
?  /usr/local/Cellar/haskell-platform/2013.2.0.0: 1463 files, 232M, built in 24.5 minutes

2013年6月28日現在最新版の ghc 7.6.3 がインストールできて良い感じ。