Skip to content

Instantly share code, notes, and snippets.

@rcolinray
Created April 8, 2014 23:14
Show Gist options
  • Save rcolinray/10207245 to your computer and use it in GitHub Desktop.
Save rcolinray/10207245 to your computer and use it in GitHub Desktop.
Remove all Cabal packages.
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