first cut at configurations patch, and a couple more

Einar Karttunen ekarttun at cs.helsinki.fi
Thu Aug 10 08:03:26 EDT 2006


On 10.08 06:04, Einar Karttunen wrote:
> On 02.08 11:11, Simon Marlow wrote:
> > A little bit more about configurations.  Here's what you can do with them:
> 
> Implemented parts of the spec. I wish for this to get into 6.6
> to avoid problems e.g. depending on fps. This is alpha quality
> code, but I am willing to work on it to get issues sorted
> quickly.
>

Now it should support most of the things and the parser issues are
resolved. The syntax is:

cond = exp [ "&&" exp | "||" exp ]
exp  = "!" exp
     | "os"   "(" word ")"
     | "arch" "(" word ")"
     | "package" "(" dependency ")"
     | word
     | "(" cond ")"

Dependencies are in the form of package(base < 2.0) rather than
package(base-any, <2.0)

This should be ready for testing.

- Einar Karttunen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configurations2.patch.gz
Type: application/octet-stream
Size: 20933 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/cabal-devel/attachments/20060810/53e49441/configurations2.patch-0001.obj


More information about the cabal-devel mailing list