Last active
April 11, 2024 22:31
-
-
Save gatlin/3862648 to your computer and use it in GitHub Desktop.
Uninstall Haskell from Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# source: http://www.haskell.org/pipermail/haskell-cafe/2011-March/090170.html | |
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` |
sudo rm -rf /usr/local/lib/HaskellCLI-8.6.4-13.14-2
Or run:
$ uninstall-hs
Where should I expect uninstall-hs
to be found?
It is not in my path and looking for up I turn up nothing.
What about .ghcup
?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used a single quote for properly displaying the statement. Even if I use the grave accent, still I have the same warning. I'm not familiar with the
bash
terms. I guess the warning means "No folder named hs-bin-links"?