I personally prefer Semver. I think it's reasonable, simple, and makes sense. But as a good Haskell citizen, I'd like to be PVP-compliant as well. Here is a bit of a graphic showing how the two systems are almost the same:
PVP: A . B . C . ...
Semver: Major . Minor . Patch
^ ^ ^
| | |
| | ` increment for other changes
| |
| ` increment on non-breaking change
|
` increment on breaking change
Basically, PVP's A
is useless from a compatibility standpoint. It's just a bystander in the "increment A.B
for breaking changes" rule. So I just set it to 0
and never change it. The remaining 3 components then follow Semver.
So for any of my packages, you can interpret versions as: 0.Major.Minor.Patch
Well, we cannot write arbitrary version numbers after
version:
inpackage.yaml
. Stack fails to build if I write1.0.0-alpha.1
in mypackage.yaml
.That's why I have to include how to deal with this limitation in my process :-/