unleash-client-haskell-core-0.10.0: Unleash feature toggle client core
CopyrightCopyright © FINN.no AS Inc. All rights reserved.
LicenseMIT
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unleash.Internal.Predicates

Description

Predicate helpers.

Synopsis

Documentation

datePredicate Source #

Arguments

:: (UTCTime -> UTCTime -> Bool)

Predicate.

-> Maybe Text

First argument to predicate (to be parsed to UTC time).

-> Maybe Text

Second argument to predicate (to be parsed to UTC time).

-> Bool

Predicate result.

Evaluate a predicate for UTC times.

numPredicate Source #

Arguments

:: (Double -> Double -> Bool)

Predicate.

-> Maybe Text

First argument to predicate (to be parsed to UTC time).

-> Maybe Text

Second argument to predicate (to be parsed to UTC time).

-> Bool

Predicate result.

Evaluate a predicate for numbers.

semVerPredicate Source #

Arguments

:: (SemVer -> SemVer -> Bool)

Predicate.

-> Maybe Text

First argument to predicate (to be parsed to a version).

-> Maybe Text

Second argument to predicate (to be parsed to a version).

-> Bool

Predicate result.

Evaluate a predicate for semantic versioning values.