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

Simon Marlow simonmarhaskell at gmail.com
Tue Oct 16 08:45:09 EDT 2007


Bayley, Alistair wrote:
>> From: libraries-bounces at haskell.org 
>> [mailto:libraries-bounces at haskell.org] On Behalf Of Simon Marlow
>>
>>    x changes ==> API changed
>>    x constant but y changes ==> API extended only
>>    x and y constant ==> API is identical
>>
>> Ordering on versions is lexicographic, given multiple 
>> versions that satisfy a dependency Cabal will pick the latest.
> 
> 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.

The lexicographical ordering would make 10.0 > 9.3.  In general, A.B > C.D 
iff A > C or A == C && B > D.  When we say the "latest" version we mean 
"greatest", implying that version numbers increase with time.  Does that help?

Cheers,
	Simon



More information about the Haskell-Cafe mailing list