dan-t / cabal-bounds

Set the version bounds of dependencies in a cabal file
Other
66 stars 7 forks source link

Cabal’s lexicografic ordering and trailing zeros in version bounds #5

Closed zkf closed 9 years ago

zkf commented 9 years ago

When using cabal-bounds to update dependencies of a package, the bounds for lens were updated to lens >=4.7.0 && <4.8. However, on Hackage, lens’s most recent version is given as 4.7, without the trailing zero.

Now cabal is unable to resolve the dependencies because, according to the lexicografic ordering, 4.7 >= 4.7.0 = False.

dan-t commented 9 years ago
Now cabal is unable to resolve the dependencies because, according to
the lexicografic ordering, 4.7 >= 4.7.0 = False.

@23Skidoo isn't this a cabal issue? I don't think that '4.7' and '4.7.0' should really mean something different.

23Skidoo commented 9 years ago

This is a Data.Version issue. IIRC there is a ticket for it either on the Cabal or GHC tracker somewhere.

23Skidoo commented 9 years ago

https://github.com/haskell/cabal/issues/1368

dan-t commented 9 years ago

cabal-bounds 0.9.1 should now fix this.

zkf commented 9 years ago

Thanks!

dan-t commented 9 years ago

Unfortunately cabal-bounds 0.9.1 is broken, I will try to release 0.9.2 this evening.