suggestion for a small extension to configurations

Ian Lynagh igloo at earth.li
Tue Oct 16 18:45:13 EDT 2007


On Tue, Oct 16, 2007 at 11:15:14PM +0100, Duncan Coutts wrote:
> 
> each package predicate test introduces it's own distinct anonymous flag.
> The flags are introduced in order, top to bottom, left to right and
> appear after all other named flags.

I don't have strong opinions either way (I'd say the extra complexity
wasn't worthwhile personally, but you've had more experience with
writing cabal configurations), but one thing that occurs to me: are
people likely to write things like this?:

if (base >= 3.0)
    build-depends: pretty
if (base >= 3.0)
    build-depends: containers
[...]

If so then we'll want to spot that and only invent a single flag, or the
exponential number of combinations might become significant.


Thanks
Ian



More information about the cabal-devel mailing list