orgstat-0.1.0: Statistics visualizer for org-mode

Safe HaskellNone
LanguageHaskell2010

OrgStat.WorkMonad

Description

Definition for main work scope

Synopsis

Documentation

data WorkConfig Source #

Read-only app configuration.

data WorkData Source #

State component of application.

newtype WorkM a Source #

Constructors

WorkM 

Instances

Monad WorkM Source # 

Methods

(>>=) :: WorkM a -> (a -> WorkM b) -> WorkM b #

(>>) :: WorkM a -> WorkM b -> WorkM b #

return :: a -> WorkM a #

fail :: String -> WorkM a #

Functor WorkM Source # 

Methods

fmap :: (a -> b) -> WorkM a -> WorkM b #

(<$) :: a -> WorkM b -> WorkM a #

Applicative WorkM Source # 

Methods

pure :: a -> WorkM a #

(<*>) :: WorkM (a -> b) -> WorkM a -> WorkM b #

(*>) :: WorkM a -> WorkM b -> WorkM b #

(<*) :: WorkM a -> WorkM b -> WorkM a #

MonadIO WorkM Source # 

Methods

liftIO :: IO a -> WorkM a #

MonadThrow WorkM Source # 

Methods

throwM :: Exception e => e -> WorkM a #

MonadCatch WorkM Source # 

Methods

catch :: Exception e => WorkM a -> (e -> WorkM a) -> WorkM a #

CanLog WorkM Source # 
HasLoggerName WorkM Source # 
MonadState WorkData WorkM Source # 

Methods

get :: WorkM WorkData #

put :: WorkData -> WorkM () #

state :: (WorkData -> (a, WorkData)) -> WorkM a #

MonadReader WorkConfig WorkM Source # 

Methods

ask :: WorkM WorkConfig #

local :: (WorkConfig -> WorkConfig) -> WorkM a -> WorkM a #

reader :: (WorkConfig -> a) -> WorkM a #

runWorkM :: MonadIO m => WorkConfig -> WorkM a -> m a Source #