Skip to content

Commit 8eccbd2

Browse files
authored
Update PVP specification to mention non-leading zeros (#38)
* Update PVP specification to mention non-leading zeros for v1.1
1 parent 1f83153 commit 8eccbd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v1.1/pvp-specification.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ A package version number **SHOULD** have the form *A.B.C*, and **MAY**
4141
optionally have any number of additional components, for example 2.1.0.4
4242
(in this case, *A*=2, *B*=1, *C=0*). This policy defines the meaning of
4343
the first three components *A-C*, the other components can be used in
44-
any way the package maintainer sees fit.
44+
any way the package maintainer sees fit. Components are non-negative
45+
integers, and MUST NOT contain leading zeroes.
4546

4647
Version number ordering is already defined by Cabal as the lexicographic
4748
ordering of the components. For example, 2.0.1 \> 1.3.2, and 2.0.1.0 \> 2.0.1.

0 commit comments

Comments
 (0)