nixpkgs-update-0.3.0: Tool for semi-automatic updating of nixpkgs repository
Safe HaskellNone
LanguageHaskell2010

Version

Synopsis

Documentation

matchVersion :: VersionMatcher -> Version -> Bool Source #

Reports True only if matcher certainly matches. When the order or equality of versions is ambiguous, return False.

Examples:

>>> matchVersion (SingleMatcher "1.2.3") "1_2-3"
True
>>> matchVersion (RangeMatcher Unbounded (Including "1.0-pre3")) "1.0"
False
>>> matchVersion (RangeMatcher Unbounded (Excluding "1.0-rev3")) "1.0"
True