multiple cabal files in one directory?

Henning Thielemann lemming at henning-thielemann.de
Thu Jan 13 18:55:21 CET 2011


Duncan Coutts wrote:

> I think the simplest model would be as follows:
> 
> reporoot/
> reporoot/pads/
> reporoot/pads/pads.cabal
> reporoot/pads/Language/Pads/XXX.hs
> 
> reporoot/forest/
> reporoot/forest/forest.cabal
> reporoot/forest/Language/Forest/XXX.hs
> 
> ...
> 
> I agree that if you typically develop these two packages together but
> want to be able to distribute them separately then it would be nicer
> to be able to have multiple .cabal files in one directory.

Or just write

$ for dir in pads forest; do (cd $dir; cabal install); done



More information about the Libraries mailing list