Johannes Waldmann | 11 Aug 13:52
Favicon

cabal-install


"cabal install foo" seems a nice (in fact, indispensible) idea,
but I don't see how to do the following with *one* command,
for package "foo" and all its dependencies:
* download and build as user, but install as root
* also build and install haddockumentation for each of the packages
Best regards, J.W.

Duncan Coutts | 11 Aug 14:17
Gravatar

Re: cabal-install

On Mon, 2008-08-11 at 13:54 +0200, Johannes Waldmann wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> "cabal install foo" seems a nice (in fact, indispensible) idea,
> but I don't see how to do the following with *one* command,
> for package "foo" and all its dependencies:
> * download and build as user, but install as root

cabal install foo --global --root-cmd=sudo

That feature has not been heavily tested so let us know if you find any
problems.

> * also build and install haddockumentation for each of the packages

The current development version supports:

cabal install foo --enable-documentation

If you want any of these options on by default then you can (or will be
able to) set them in the ~/.cabal/config file.

Duncan

Gmane