Semantic versioning for Carp.
You can obtain this library like so:
(load "git@github.com:carpentry-org/semver@0.0.6")
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!