Workflow-0.8.0.7: Workflow patterns over a monad for thread state logging & recovery

Safe HaskellNone

Control.Workflow.Stat

Synopsis

Documentation

data WF s m l Source

Constructors

WF 

Fields

st :: s -> m (s, l)
 

Instances

(Monad m, Functor m) => Functor (Workflow m) 
(Monad m, Functor m) => Applicative (Workflow m) 
(Monad m, MonadIO m, Serialize a, Typeable a) => PMonadTrans (WF Stat) m a
plift= step
Monad m => Monad (WF s m) 
MonadIO m => MonadIO (WF Stat m) 
(HasFork io, MonadIO io, MonadCatchIO io) => HasFork (WF Stat io) 
(Serialize a, Typeable a, MonadIO m, MonadCatchIO m) => MonadCatchIO (WF Stat m) a 

keyWF :: Indexable a => String -> a -> StringSource

Return the unique name of a workflow with a parameter (executed with exec or start)

data WFRef a Source

Constructors

WFRef !Int !(DBRef Stat) 

Instances

safe :: FilePath -> (Handle -> IO a) -> IO aSource

showHistory :: Stat -> ByteStringSource

show the state changes along the workflow, that is, all the intermediate results