RFC: Extended version-range descriptions for Cabal
Thomas Schilling
nominolo at googlemail.com
Mon Sep 24 17:12:38 EDT 2007
On Mon, 2007-09-24 at 21:36 +0100, Neil Mitchell wrote:
> Hi
>
> > > m.n.o.* ~~> >= m.n.o && < m.n.(o+1)
> >
> > I like this.
>
> Me too.
>
> > > m - n ~~> >= m && <= n
>
> I would much prefer m .. n as the syntax, as that is the syntax for
> ranges in Haskell.
Right, that's another option. Though, I'm not sure how that looks with
dots in version.
For comparision:
Build-depends: base 1.1 to 2.1.*, filepath 1.1 to 1.*
Build-depends: base 1.1 .. 2.1.*, filepath 1.1 .. 1.*
Build-depends: base 1.1 - 2.1.*, filepath 1.1 - 1.*
Build-depends: base [1.1, 2.2), filepath [1.1, 2)
Spaces would be recommended (but not required) in any case.
/ Thomas
More information about the Libraries
mailing list