[Haskell-beginners] cabal multi-library setup

Magnus Therning magnus at therning.org
Sun Mar 6 21:34:35 CET 2011

On Sun, Mar 06, 2011 at 12:30:45PM -0800, Cristian Petrescu Prahova wrote:
> Hi,
> I have a small project consisting of a library and an application. I
> cabalized both. However, whenever I tweak the library I cabal
> install it, then move to the app directory, then reconfigure, then
> rebuild. This is annoying repetitive shell typing. Is there a way to
> configure my setup such that cabal build app automatically rebuilds
> (and reinstalls?) the library dependency? I'd like something like:
> # builds the library and runs the tests
> cabal make lib
> # builds the app and the library dependency, then runs the app
> cabal make app

I suspect you'll have to write a wrapper makefile in order to get
something like that.


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

Most software today is very much like an Egyptian pyramid with
millions of bricks piled on top of each other, with no structural
integrity, but just done by brute force and thousands of slaves.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110306/165e0f05/attachment.pgp>

More information about the Beginners mailing list