11 Sep 2009 11:24
Re: darcs patch: Fix the version-range parser to allow arbitrary expres...
Laszlo Nagy <rizsotto <at> gmail.com>
2009-09-11 09:24:57 GMT
2009-09-11 09:24:57 GMT
Hi Malcom, This patch contains a typo, and does not compile for me. It's easy to fix and I did. After that run simple test cases against it and it failed. Here you can find my tests: http://sites.google.com/site/rizsotto/patches/cabal-ticket212.darcs And I also tried to solve this ticket earlier, here is my solution: http://sites.google.com/site/rizsotto/patches/cabal-ticket484.darcs Regards -- LAca On Thu, Sep 10, 2009 at 9:15 PM, <Malcolm.Wallace <at> cs.york.ac.uk> wrote: > Thu Sep 10 20:09:12 BST 2009 Malcolm.Wallace <at> cs.york.ac.uk > * Fix the version-range parser to allow arbitrary expressions over constraints. > Previously, only a single conjunction (&&) or disjunction (||) was > parseable, despite an internal representation that permits arbitrary > combinations. Now, any sequence of (&&) and (||) combining forms is > parsed. (&&) binds more tightly than (||). > > _______________________________________________ > cabal-devel mailing list > cabal-devel <at> haskell.org > http://www.haskell.org/mailman/listinfo/cabal-devel > >(Continue reading)
The check on using the new syntax was not quite right. The problem is
how we represent >= in terms of UnionVersionRanges (EarlierVersion v)
(ThisVersion v). For example this dep violated the check: ">= 1 && < 2"
I also fixed the pretty printer to respect operator precedence.
Duncan
RSS Feed