feature-flipper-0.1.0.0: A minimally obtrusive feature flag library

Safe HaskellSafe
LanguageHaskell2010

Control.Flipper.Types

Description

 

Synopsis

Documentation

newtype Features Source #

An abstraction representing the current state of the features store.

Constructors

Features 

class Monad m => HasFeatureFlags m where Source #

The HasFeatureFlags typeclass describes how to access the Features store within the current monad.

Minimal complete definition

getFeatures

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

updateFeatures

Methods

updateFeatures :: Features -> m () Source #

updateFeatures modifies the Features store within the current monad

mkFeatures :: Map FeatureName Bool -> Features Source #

Convienience constructor