Created
April 8, 2014 23:14
-
-
Save rcolinray/10207245 to your computer and use it in GitHub Desktop.
Remove all Cabal packages.
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
for pkg in `ghc-pkg list | sed -e '1,/Cabal-1.18.1.3/d'` | |
do | |
ghc-pkg unregister --force $pkg | |
done | |
for file in `ls -d -1 ~/Library/Haskell/ghc-7.6.3/lib/** | grep -v Cabal-1.18.1.3` | |
do | |
rm -rf $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment