Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- 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.
newtype FeatureName Source #
The main identifier of a feature
class Monad m => HasFeatureFlags m where Source #
The HasFeatureFlags
typeclass describes how to access the Features store
within the current monad.
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.
updateFeatures :: Features -> m () Source #
updateFeatures
modifies the Features store within the current monad
mkFeatures :: Map FeatureName Bool -> Features Source #
Convienience constructor