settings-0.2.1.0: Runtime-editable program settings.

Safe HaskellSafe
LanguageHaskell2010

Data.Settings.Types

Synopsis

Documentation

data Option m Source

A settings option. The option value itself is held as usual in regular application state, not here. What is held here is functions applied to that state to get or set the value.

Constructors

Option 

Fields

optGet :: m String
 
optSet :: String -> m (Maybe SettingsError)
 
optReset :: m ()
 

data Section m Source

Constructors

Section 

class Monad m => MonadSettings m s | m -> s where Source

Methods

getSettings :: m s Source

putSettings :: s -> m () Source

modifySettings :: (s -> s) -> m () Source

getSTree :: m (Section m) Source