Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype WorkflowDB = WorkflowDB Connection
- data Workflow = Workflow (Map Text Attribute) (Map String Closure) (Processor () ())
- data Closure where
- type PID = Text
- data NodeResult
- type ProcState b = StateT WorkflowState (ExceptT (PID, SomeException) IO) b
- data WorkflowState = WorkflowState {
- _db :: WorkflowDB
- _procStatus :: Map PID (MVar NodeResult, Attribute)
- _procParaControl :: MVar ()
- _remote :: Bool
- db :: Lens' WorkflowState WorkflowDB
- procStatus :: Lens' WorkflowState (Map PID (MVar NodeResult, Attribute))
- procParaControl :: Lens' WorkflowState (MVar ())
- remote :: Lens' WorkflowState Bool
- type Processor a b = a -> ProcState b
- data RunOpt = RunOpt {}
- class BatchData a b where
- class BatchData' flag a b where
- type family IsList a b where ...
- class DBData a where
- data Attribute = Attribute {}
- type AttributeSetter = State Attribute ()
- defaultAttribute :: Attribute
- label :: Lens' Attribute Text
- note :: Lens' Attribute Text
- batch :: Lens' Attribute Int
- submitToRemote :: Lens' Attribute (Maybe Bool)
Documentation
newtype WorkflowDB Source #
An abstract type representing the database used to store states of workflow
A Workflow is a DAG
type ProcState b = StateT WorkflowState (ExceptT (PID, SomeException) IO) b Source #
data WorkflowState Source #
WorkflowState | |
|
procStatus :: Lens' WorkflowState (Map PID (MVar NodeResult, Attribute)) Source #
procParaControl :: Lens' WorkflowState (MVar ()) Source #
class BatchData a b where Source #
batchFunction :: (a -> IO b) -> Int -> (a -> [a], [b] -> b) Source #
class BatchData' flag a b where Source #
batchFunction' :: flag -> (a -> IO b) -> Int -> (a -> [a], [b] -> b) Source #
serialize :: a -> ByteString Source #
deserialize :: ByteString -> a Source #
showYaml :: a -> ByteString Source #
readYaml :: ByteString -> a Source #
Node attribute
type AttributeSetter = State Attribute () Source #