なんだこれは

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

すごいよ!haskellさん platform外伝

すごいHaskellたのしく学ぼう!を買った。わくわくするよね。でも、前にhaskell platformを入れて、ずいぶん経ってしまっている、fu7mu4はどうすればいいのかな?とりあえず、haskell platformを再インストールしてみた。

get

Mac 用のhaskell platformをここからdownloadした。とくに32bitか64bitかを把握しておくこと。

以前のversionをインストールしている場合でもそのままインストールしてみた。
よくあるパッケージをダブルクリックをしてインストーラを起動だ。

古いverisonのhaskell platformはどうなる?

その場合、uninstall-hsというコマンドで古いバージョンをどうするか調整できると、メッセージがでる。やってみた。

uninstall-hs

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

まず、6.12を削除してみよう。

uninstall-hs only 6.12

- Would remove just version 6.12
/Library/Frameworks/GHC.framework/Versions/612
-- 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

実際に消すには、sudoでないとだめらしい。ただ、手順としては正しいようだ。

sudo uninstall-hs only 6.12 --remove

-- Removing just version 6.12

消えた、はず。

uninstall-hs

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

消えてた!!

アレなので、もういっかいして、6.12.1を消してから、ghciが起動できることを確認した。

おしまい