Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Option m = Option {}
- data Section m = Section {}
- type OptName = String
- type SecName = String
- type OptPath = String
- type OptRoute = [String]
- data SettingsError
- class OptionValue v where
- readOption :: String -> Maybe v
- showOption :: v -> String
- typeName :: v -> String
- class Monad m => MonadSettings m s | m -> s where
- getSettings :: m s
- putSettings :: s -> m ()
- modifySettings :: (s -> s) -> m ()
- getSTree :: m (Section m)
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.
data SettingsError Source
class OptionValue v where Source
readOption :: String -> Maybe v Source
showOption :: v -> String Source
class Monad m => MonadSettings m s | m -> s where Source