Skip to content

Instantly share code, notes, and snippets.

@tejasbubane
Last active December 2, 2019 07:17
Show Gist options
  • Save tejasbubane/5a78ac209afe5adc7b53db44ebaa6fb8 to your computer and use it in GitHub Desktop.
Save tejasbubane/5a78ac209afe5adc7b53db44ebaa6fb8 to your computer and use it in GitHub Desktop.
Uninstall all haskell version
# Thanks to this mailing list message: https://mail.haskell.org/pipermail/haskell-cafe/2011-March/090170.html
# Note: This removes ALL haskell versions & anything related to it
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`
@tejasbubane
Copy link
Author

Note: This removes ALL haskell versions & anything related to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment