[Haskell-cafe] A maintenance command of Haskell cabal packages

Rogan Creswick creswick at gmail.com
Fri Apr 1 04:31:24 CEST 2011


On Thu, Mar 31, 2011 at 7:19 PM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
>> cabal-dev is a wrapper around cabal. It creates the directory
>> "cabal-dev" in your current directory when you run commands.
>
> Yes, I know. But when I typed "cabal-devel install" on a package
> directory, nothing happened.

Can you give a specific example? Surely *something* happened :)

> I read its source but I could not found the code where cabal-dev
> passes GHC_PACKAGE_PATH to ghc. I don't know how cabal-dev can
> implement the sandbox featrue.

running cabal-dev with --verbose=3 will show you all the cabal and
ghc-pkg commands, which is probably the best way to see what's going
on.

Cabal-dev uses a custom cabal.config file that's (by default) located
in the sandbox directory.  That file specifies a package-db to use
(amongst a few other things), and cabal-install is invoked with that
config.

--Rogan




>
> --Kazu
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



More information about the Haskell-Cafe mailing list