Module
QualifiedDo.ParApply
- Package
- purescript-qualified-do
- Repository
- artemisSystem/purescript-qualified-do
Use an Apply
's Parallel
instance in an ado
block. Example:
import QualifiedDo.ParApply as Par
-- Equivalent to: (f <$> action1) `parApply` action2
Par.ado
result1 ← action1
result2 ← action2
in f result1 result2
#pure Source
pure :: forall f a. Applicative f => a -> f a