Module

Control.Cycle

Package
purescript-cycle-run
Repository
justinwoo/purescript-cycle-run

#Dispose Source

type Dispose e = Unit -> Eff e Unit

#run Source

run :: forall b a e. (a -> Stream b) -> (Stream b -> Eff e a) -> Eff e (Dispose e)

Cycle run for one source input and one sink output.

#runRecord Source

runRecord :: forall e drivers sinks sources. CycleRunRecord sources sinks drivers => (Record sources -> Record sinks) -> Record drivers -> Eff e (Dispose e)

Cycle run for a record of source inputs to sink outputs.

#CycleRunRecord Source

class CycleRunRecord (sourceRow :: Row Type) (sinkRow :: Row Type) (driverRow :: Row Type) | sourceRow -> sinkRow driverRow, sinkRow -> sourceRow driverRow, driverRow -> sourceRow sinkRow

Instances

#CycleRunRowList Source

class CycleRunRowList (sourceList :: RowList) (sinkList :: RowList) (driverList :: RowList) | sourceList -> sinkList driverList, sinkList -> sourceList driverList, driverList -> sourceList sinkList

Instances

Modules
Control.Cycle