multiple cabal files in one directory?

Duncan Coutts duncan.coutts at
Thu Jan 13 19:15:42 CET 2011

On 13 January 2011 17:55, Henning Thielemann
<lemming at> wrote:
> 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

That's assuming the dependencies go in that order. With the next
version of cabal you will be able to say:

$ cabal install pads/ forest/

and it will work out the dependency order and install both.


More information about the Libraries mailing list