redundancies

This commit is contained in:
Keagan McClelland
2020-02-27 15:04:29 -07:00
parent b8ce0c1b16
commit 36c9c056ed
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