redundancies

This commit is contained in:
Keagan McClelland
2020-02-27 15:04:29 -07:00
parent f5fcbbe0f2
commit dae7164d3e
3 changed files with 1 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import Startlude
import Lib.Types.Semver
(<||) :: HasAppVersion a => a -> AppVersionSpecification -> Bool
(<||) a AppVersionAny = True
(<||) a (AppVersionSpecification SVEquals av1) = version a == av1
(<||) a (AppVersionSpecification SVLessThan av1) = version a < av1
(<||) a (AppVersionSpecification SVGreaterThan av1) = version a > av1