[Haskell-cafe] GHC 6.10.1 and cabal[-install]

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Tue Nov 18 08:23:12 EST 2008

Am Dienstag, 18. November 2008 11:01 schrieb Wolfgang Jeltsch:
> Hello,
> I installed GHC 6.10.1 today and expected it to contain the cabal command
> line utility.  Unfortunately, this was not the case.  Where can I download
> it?

Meanwhile, I found out that the package cabal-install includes the cabal 
command.  On the other hand I thought that there was a now deprecated command 
line tool named cabal-install.  I find this a bit confusing.

> How do I install and configure it so that it is integrated best with
> GHC 6.10.1?  For example, should cabal use some directory in the GHC tree 
> to place compiled packages in?

Cabal wants to place package info in $HOME/.cabal.  However, I want to install 
packages globally with sudo.  So I want to have a global package cache.  Is 
there a common directory to be used for that or is cabal[-install] only for 
per-user installations?

Well, there is the --global option but it is apparently only for registering 
packages globally.  Does it change the destination directory for the 
installed packages too?  If yes, to what directory?  Is the default --global 
or --user?  Sorry, but I cannot find the answers to this in the docs and I 
don’t want to mess up my file system.

Best wishes,

More information about the Haskell-Cafe mailing list