A package handling the semantic versioning v2.
SemVer2
is an algebraic data type with the Eq
type class, ToString
type class, and Order
type class.
use SemVer2.parse;
def isVersion1(text: String): Bool = match parse(text) {
case Ok(v) => SemVer2.getMajor(v) == 1
case _ => false
}
You can install the fpkg file by the following command:
$ java -jar flix.jar install KengoTODA/flix-semver2
$ ls lib/KengoTODA/flix-semver2/flix-semver2.fpkg
Copyright © 2022 Kengo TODA all rights reserved.