SemanticVersion
Semantic versions consist of three numbers, each having a specific meaning. This module makes no attempt to enforce the semantic versioning rules.
type alias SemanticVersion =
{ major : Int, minor : Int, patch : Int }
A semantic version has three numbers, separated by a period.
major
signifies API compatibility. Two version with differentmajor
numbers, are likely incompatible.minor
represents additions.1.0.0
should be compatible with1.1.0
, but not the other way around.patch
represents bug fixes.1.0.0
and1.0.1
has the same API, but the latter might be more stable.
fromString :
String -> Maybe SemanticVersion
Convert a String
into a SemanticVersion.
cliParser :
ValueParser SemanticVersion
A parser for use with CLI.Parser.
toString :
SemanticVersion -> String
Turn a SemanticVersion into a String
.
toJson :
SemanticVersion -> Value
Turn a SemanticVersion into Json
.