Semantic versioning for Carp.
You can obtain this library like so:
(load "[email protected]:carpentry-org/[email protected]")
Semantic versions can be parsed using Semver.from-string
.
(Semver.from-string "1.2.3-mytag") ; returns a Maybe
; or, alternatively
(Semver.init 1 2 3 "-mytag")
You can then compare them using normal arithmetic comparison. The tags are disregarded everywhere, except when checking equality.
Have fun!