bvssvni/rust-idris-fs

Information about solving trouble with cabal installer

bvssvni opened this issue · 3 comments

rm -rf ~/.ghc ~/.cabal and reinstall Haskell platform.

Or you could try:

https://gist.github.com/dysinger/8886785

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 `cat /tmp/hs-bin-links`

Source: http://www.haskell.org/pipermail/haskell-cafe/2011-March/090170.html

If you are reinstalling Haskell platform after cabal install cabal-install you might experience problems on OSX.

Add export PATH="~/Library/Haskell/bin/cabal":$PATH to .bash_profile