Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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.
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 #
class Monad m => MonadSettings m s | m -> s where Source #
getSettings :: m s Source #
putSettings :: s -> m () Source #
modifySettings :: (s -> s) -> m () Source #