
On 13 January 2011 17:55, Henning Thielemann
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. Duncan