Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Settings.Types
Documentation
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 | |
A settings section in the settings UI tree.
type OptRoute = [Text] Source #
An option route, i.e. a list of section names ending with an option name, which describes a path in the settings UI tree leading to that option.
data SettingsError Source #
An error occuring during an operation on the settings.
class OptionValue v where Source #
Minimal complete definition
class Monad m => MonadSettings m s | m -> s where Source #
Minimal complete definition
Methods
getSettings :: m s Source #
putSettings :: s -> m () Source #
modifySettings :: (s -> s) -> m () Source #