Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Feature Flags are temporary toggles.
Synopsis
- newtype FeatureFlag = FeatureFlag {
- ffIdentifier :: Text
- ceCheckFeatureFlag :: Environment -> CheckFeatureFlag
- data CheckFeatureFlag = CheckFeatureFlag {
- runCheckFeatureFlag :: FeatureFlag -> IO Bool
- listKnownFeatureFlags :: [(FeatureFlag, Text)]
- class Monad m => HasFeatureFlagChecker m where
- checkFlag :: FeatureFlag -> m Bool
Documentation
newtype FeatureFlag Source #
Instances
ceCheckFeatureFlag :: Environment -> CheckFeatureFlag Source #
In OSS we _may_ look for a environment variable or fall back to the default value.
data CheckFeatureFlag Source #
CheckFeatureFlag | |
|
class Monad m => HasFeatureFlagChecker m where Source #
checkFlag :: FeatureFlag -> m Bool Source #
Instances
HasFeatureFlagChecker AppM Source # | |
Defined in Hasura.App | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (CacheRWT m) Source # | |
Defined in Hasura.RQL.DDL.Schema.Cache | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (MetadataT m) Source # | |
Defined in Hasura.RQL.Types.SchemaCache.Build | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (Handler m) Source # | |
Defined in Hasura.Server.App | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (ExceptT e m) Source # | |
Defined in Hasura.Server.Init.FeatureFlag | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (ReaderT r m) Source # | |
Defined in Hasura.Server.Init.FeatureFlag | |
HasFeatureFlagChecker m => HasFeatureFlagChecker (StateT s m) Source # | |
Defined in Hasura.Server.Init.FeatureFlag |