| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OrgStat.WorkMonad
Description
Definition for main work scope
Synopsis
- data WorkConfig = WorkConfig {}
- wcConfig :: Lens' WorkConfig OrgStatConfig
- wcCommonArgs :: Lens' WorkConfig CommonArgs
- data WorkData
- wdReadFiles :: Lens' WorkData (HashMap FilePath (Text, Org))
- wdResolvedScopes :: Lens' WorkData (HashMap Text Org)
- wdResolvedReports :: Lens' WorkData (HashMap Text Org)
- newtype WorkM a = WorkM {}
- runWorkM :: MonadIO m => WorkConfig -> WorkM a -> m a
Documentation
data WorkConfig Source #
Read-only app configuration.
Constructors
| WorkConfig | |
Fields | |
Instances
| MonadReader WorkConfig WorkM Source # | |
Defined in OrgStat.WorkMonad Methods ask :: WorkM WorkConfig # local :: (WorkConfig -> WorkConfig) -> WorkM a -> WorkM a # reader :: (WorkConfig -> a) -> WorkM a # | |
State component of application.
Instances
| Monad WorkM Source # | |
| Functor WorkM Source # | |
| Applicative WorkM Source # | |
| MonadIO WorkM Source # | |
Defined in OrgStat.WorkMonad | |
| MonadThrow WorkM Source # | |
Defined in OrgStat.WorkMonad | |
| MonadCatch WorkM Source # | |
| MonadReader WorkConfig WorkM Source # | |
Defined in OrgStat.WorkMonad Methods ask :: WorkM WorkConfig # local :: (WorkConfig -> WorkConfig) -> WorkM a -> WorkM a # reader :: (WorkConfig -> a) -> WorkM a # | |
| MonadState WorkData WorkM Source # | |