[Haskell-cafe] RE: [Haskell] Re: Trying to install binary-0.4

Stuart Cook scook0 at gmail.com
Tue Oct 16 08:36:19 EDT 2007


On 10/16/07, Bayley, Alistair <Alistair_Bayley at invescoperpetual.co.uk> wrote:
> Just a minor point, but would mind explaining exactly what lexicographic
> ordering implies? It appears to me that e.g. version 9.3 of a package
> would be preferred over version 10.0. That strikes me as
> counter-intuitive.

I believe the intent is "lexicographic" in the sense that a version
number is a dot-separated sequence of integers. So if you interpret
"9.3" as [9, 3] and "10.0" as [10, 0], then

  Prelude> max [9, 3] [10, 0]
  [10,0]

and

  Prelude> max [1, 9] [1, 10]
  [1,10]

work in the expected way.


Stuart


More information about the Haskell-Cafe mailing list