building haddock?

Duncan Coutts duncan.coutts at
Tue Jan 31 11:23:14 EST 2006

On Tue, 2006-01-31 at 13:54 +0000, Simon Marlow wrote:
> Duncan Coutts wrote:

> > We really need a field:
> > 
> > cabal-depends: 1.1.4
> > 
> > So that older versions of Cabal can say "you need version
> > ${cabal-depends} of Cabal to build this package".
> There is such a field:
>    cabal-version: >=1.1.4

Really! I had never seen it.

> but I didn't use it in Haddock (now fixed).  This field doesn't help 
> with all the backwards compatibility issues, particularly API changes in 
> the Cabal libraries, as we know (see previous discussions).

Indeed, because by the time the cabal Setup.lhs reads the file it's too
late. Hence my suggestion in the previous discussions for a cabal
program that reads the file, decides which version of the Cabal libs to
use and then builds a setup program and passes control on to that.


More information about the Libraries mailing list