can't install 64-bit haskell platform for mac os x

Mark Lentczner mark at
Tue Jun 28 15:29:02 BST 2011

The following script will remove all traces of the HP installs on your
system. Then you can re-install the 64-bit version:

WARNING: Review this script: It trashes everything and HP platform installer
could have installed, as well as Haskell packages cabal installed. It also
kills some stuff in your home dir. If you have configuration files in
~/.cabal and/or ~/.ghc, copy them somewhere else first.

 - Mark

set -x

sudo rm -rf /Library/Frameworks/GHC.framework
sudo rm -rf /Library/Frameworks/HaskellPlatform.framework
sudo rm -rf /Library/Haskell
rm -rf ~/.cabal
rm -rf ~/.ghc
rm -rf ~/Library/Haskell
find /usr/bin /usr/local/bin -type l | \
  xargs -If sh -c '/bin/echo -n f /; readlink f' | \
  egrep '//Library/(Haskell|Frameworks/(GHC|HaskellPlatform).framework)' | \
  cut -f 1 -d ' ' > /tmp/hs-bin-links
sudo rm -f `cat /tmp/hs-bin-links`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Haskell-platform mailing list