(makeVersion [4, 9, 0, 0] <= makeVersion [4, 9]) == False
I have hit a strange bug in cabal project. Zeroes in Version have meaning, which is not logical (at least mathematically). See this example:
import Data.Version
makeVersion [4, 9, 0, 0] <= makeVersion [4, 9]
False
I propose to add zeroes to the version with less numbers, so they could be equally compared.
Related discussion: https://github.com/commercialhaskell/stack/issues/2948
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |