funflow-2.0.0: Make composable workflows
Safe HaskellSafe-Inferred
LanguageHaskell2010

Funflow.Tasks.Simple

Description

Run a pure function or an IO monadic continuation

Documentation

data SimpleTask i o where Source #

Constructors

PureTask :: (i -> o) -> SimpleTask i o 
IOTask :: (i -> IO o) -> SimpleTask i o 

Instances

Instances details
IsFlow SimpleTask Source # 
Instance details

Defined in Funflow.Flow

Methods

toFlow :: SimpleTask i o -> Flow i o Source #