Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
The top-level keter context monad, carrying around the main logger and some locally relevant configuration structure.
See this blog post for an explanation of the design philosophy: https://www.fpcomplete.com/blog/2017/06/readert-design-pattern/
TODO: generalize as contexts instead of configs? Since not every state being passed around can be intuitively thought of as a config per se. Ex. AppManager
Instances
MonadReader cfg (KeterM cfg) Source # | |
MonadIO (KeterM cfg) Source # | |
Defined in Keter.Context | |
Applicative (KeterM cfg) Source # | |
Functor (KeterM cfg) Source # | |
Monad (KeterM cfg) Source # | |
MonadLogger (KeterM cfg) Source # | |
Defined in Keter.Context | |
MonadLoggerIO (KeterM cfg) Source # | |
Defined in Keter.Context | |
MonadUnliftIO (KeterM cfg) Source # | |
Defined in Keter.Context |
withMappedConfig :: (cfg -> cfg') -> KeterM cfg' a -> KeterM cfg a Source #