Module

Record.ExtraSrghma.ParSequenceRecord

Package
purescript-record-extra-srghma
Repository
srghma/purescript-record-extra-srghma

#parSequenceRecord Source

parSequenceRecord :: forall inputRow outputRow rowList parM m. RowToList inputRow rowList => ParSequenceRecord rowList inputRow () outputRow parM m => Record inputRow -> m (Record outputRow)

Sequences a record of monadic values in parallel, returning a monadic record of values. For example, turns { a: Aff Int, b: Aff String } into Aff { a: Int, b: String } by running all the monadic values in parallel.

#ParSequenceRecord Source

class ParSequenceRecord :: forall k. k -> Row Type -> Row Type -> Row Type -> (Type -> Type) -> (Type -> Type) -> Constraintclass (Parallel parM m) <= ParSequenceRecord rowList inputRow accRow resultRow parM m | rowList -> inputRow accRow resultRow parM m where

Class for sequencing a record of monadic values in parallel

Members

Instances