なんだこれは

はてなダイアリーから移転しました。

haskell platform を更新した

haskell platform の更新手順のメモ


1. ここから Haskell Platform 2014.2.0.0 for Mac OS X, 64bit を落す
2. ダウンロードしたインストーラーを実行
3. 古いバージョンがみつかったので uninstall-hs で消してねといわれる
4. 管理ツールのuninstall-hs で古いのを削除する

バージョン管理用のツールに、/Library/Haskell/bin/uninstall-hs 、 activate-hs がある。引数なしで実行する。

sudo uninstall-hs

-- Versions found on this system
7.4.1
7.8.3
-- To remove a version and all earlier: uninstall-hs thru VERSION
-- To remove only a single version: uninstall-hs only VERSION

7.4.1 がいらないやつだったのでけすことにした。

sudo uninstall-hs thru 7.4.1

-- Would remove version 7.4.1 and earlier
/Library/Frameworks/GHC.framework/Versions/7.4.1-i386
/Library/Haskell/ghc-7.4.1
/Users/fu7mu4/.ghc/i386-darwin-7.4.1
/Users/fu7mu4/Library/Haskell/ghc-7.4.1
/usr/bin/ghc-7.4.1@ -> /Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/bin/ghc-7.4.1
/usr/bin/ghc-pkg-7.4.1@ -> /Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/bin/ghc-pkg-7.4.1
/usr/bin/ghci-7.4.1@ -> /Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/bin/ghci-7.4.1
/usr/bin/haddock-ghc-7.4.1@ -> /Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/bin/haddock-ghc-7.4.1
/Users/fu7mu4/Library/Haskell/bin/HsColour@ -> ../ghc-7.4.1/lib/hscolour-1.20.2/bin/HsColour
-- To actually remove these files, sudo run the command again with --remove
-- To generate a script to remove these files, run the command again with --script

これ消していいかと聞いている、実際に消すには remove をつけてというので、つけてやる。

sudo uninstall-hs thru 7.4.1 --remove

-- Removing version 7.4.1 and earlier

これで起動確認する。

ghci

GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude>

7.8.3 が起動していると確認できた。おしまい