RFC: Extended version-range descriptions for Cabal

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Sep 25 07:13:06 EDT 2007


In message <404396ef0709241336n1fd188dax119feab0f71ac542 at mail.gmail.com> "Neil
Mitchell" <ndmitchell at gmail.com> writes:
> 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.

True, but it looks horrible with version numbers since they're full of '.'s:
1.2.3..4.5.6 ?

I guess with our ReadP-based parser that's not ambiguous without whitespace but
it's not nice.

Duncan


More information about the cabal-devel mailing list