| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Flipper.Types
Description
- newtype Features = Features {}
- newtype FeatureName = FeatureName {}
- class Monad m => HasFeatureFlags m where
- class HasFeatureFlags m => ModifiesFeatureFlags m where
- mkFeatures :: Map FeatureName Bool -> Features
Documentation
An abstraction representing the current state of the features store.
Constructors
| Features | |
Fields | |
class Monad m => HasFeatureFlags m where Source #
The HasFeatureFlags typeclass describes how to access the Features store
within the current monad.
Minimal complete definition
Methods
getFeatures :: m Features Source #
getFeatures access the Features store within the current monad
class HasFeatureFlags m => ModifiesFeatureFlags m where Source #
The ModifiesFeatureFlags typeclass describes how to modify the Features store
within the current monad.
Minimal complete definition
Methods
updateFeatures :: Features -> m () Source #
updateFeatures modifies the Features store within the current monad
mkFeatures :: Map FeatureName Bool -> Features Source #
Convienience constructor