Library
Module
Module type
Parameter
Class
Class type
Semantic version parsing and comparator following 2.0.0 specs. <https://semver.org/#semantic-versioning-200>
A semantic version is composed of numeric major, minor and patch versions, optionnaly followed by a list of prerelease identifiers and a list of build identifiers.
val from_parts : int -> int -> int -> string list -> string list -> t option
Build a valid version from parts. Require positive values for major, minor and patch params.
val to_string : t -> string
Convert a version to its string representation.
val of_string : string -> t option
Parse a string version, returning None if format is invalid.
Compare versions, returning 0 if equal, -1 if first has lower precedence, 1 otherwise.