record Version : Type Semantic versioning with optional tag
Totality: total
Visibility: public export
Constructor: MkVersion : (Nat, (Nat, Nat)) -> Maybe String -> Version
Projections:
.semVer : Version -> (Nat, (Nat, Nat)) Semantic version
Should follow the (major, minor, patch) convention
.versionTag : Version -> Maybe String Optional tag
Usually contains git sha1 of this software's build in between releases
Hints:
Eq Version Ord Version Show Version
.semVer : Version -> (Nat, (Nat, Nat)) Semantic version
Should follow the (major, minor, patch) convention
Totality: total
Visibility: public exportsemVer : Version -> (Nat, (Nat, Nat)) Semantic version
Should follow the (major, minor, patch) convention
Totality: total
Visibility: public export.versionTag : Version -> Maybe String Optional tag
Usually contains git sha1 of this software's build in between releases
Totality: total
Visibility: public exportversionTag : Version -> Maybe String Optional tag
Usually contains git sha1 of this software's build in between releases
Totality: total
Visibility: public exportshowVersion : Bool -> Version -> String String representation of a Version with optional display of `tag`
Totality: total
Visibility: exportparseVersion : String -> Maybe Version Parse given string into a proper `Version` record
Expected format must be:
```
<major>.<minor>.<patch>(-<tag>)?
```
where <major>, <minor> and <patch> are natural integers and tag is an optional
alpha-numeric string.
Totality: total
Visibility: export