[Haskell-cafe] cabal configure && cabal build && cabal install

Albert Y. C. Lai trebla at vex.net
Wed Nov 28 05:11:41 CET 2012


On 12-11-27 04:40 AM, kudah wrote:
> On Tue, 27 Nov 2012 02:20:35 -0500 "Albert Y. C. Lai" <trebla at vex.net>
> wrote:
>
>> When "cabal build" succeeds, it always says:
>>
>> (older) "registering <name>-<version>"
>> (newer) "In-place registering <name>-<version>"
>>
>> That's what it says. But use ghc-pkg and other tests to verify that
>> no registration whatsoever has happened.
>
> It doesn't register in user package-db, it registers in it's own
> dist/package.conf.inplace. If it didn't you wouldn't be able to build
> an executable and a library in one package such that executable depends
> on the library.

That's fair. But it also means

cabal configure
cabal build

is not equivalent to

cabal configure
cabal build
cabal register --inplace

which was the context when you said "(newer) cabal build registers 
inplace automatically".



More information about the Haskell-Cafe mailing list