Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- assertCompatibleWithPathPin :: Monad m => UpdateEnv -> Text -> ExceptT Text m ()
- matchVersion :: VersionMatcher -> Version -> Bool
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