Skip to content

Instantly share code, notes, and snippets.

@avalonalex
Created April 21, 2015 00:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avalonalex/c5a378fa1af9820da57c to your computer and use it in GitHub Desktop.
Save avalonalex/c5a378fa1af9820da57c to your computer and use it in GitHub Desktop.
uninstall haskell platform
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
# review /tmp/hs-links
sudo rm `cat /tmp/hs-bin-links`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment