Haskell をバージョンアップし、 cabal update を行うと以下のエラーになった。
> cabal update Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal.exe: user error (Codec.Compression.Zlib: premature end of compressed stream)
以前も同じことがあって、その時は解決したのだけれども、すっかり忘れたのでメモ。
- 最新の cabal-install-0.8.2.tar.gz を取ってきて展開
- 中の READMEに cabal.exe を取ってきてパスの通ったところに入れろとあった。
Quickstart on Windows systems ----------------------------- For Windows users we provide a pre-compiled [cabal.exe] program. Just download it and put it somewhere on your `%PATH%`, for example `C:\Program Files\Haskell\bin`. [cabal.exe]: http://haskell.org/cabal/release/cabal-install-latest/cabal.exe The next thing to do is to get the latest list of packages with cabal update This will also create a default config file (if it does not already echo exist) at `C:\Documents and Settings\username\Application Data\cabal\config`
UNIX は ./bootstrap.sh を実行。
そうだった・・・ここに書いてもまた忘れるかも・・・Orz