Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear local cabal repository

Tags:

haskell

cabal

After forcefully installing the latest "bytestring" package I've stumbled into a dependency hell. I want to wipe all local packages out, so that I could re-cabal-install them after.

What is the correct way of doing that? Is there a better way of recreating the local repository?

like image 971
Nikita Volkov Avatar asked Jan 15 '13 09:01

Nikita Volkov


1 Answers

On OS X you can clear the following directory:

~/Library/Haskell/ghc-XXX/lib/

Globally installed packages are in, but they are commonly installed by the Haskell Platform installer, as the default is to install packages for the current user only:

/Library/Haskell/ghc-XXX/lib/

If you are on Windows or Linux try the following code (source) in ghci:

:m System.Directory
getAppUserDataDirectory "cabal"

The config file there will tell you where you are installing user packages to.

like image 161
Alessandro Vermeulen Avatar answered Nov 08 '22 13:11

Alessandro Vermeulen