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

#map Source

map :: forall f a b. Functor f => (a -> b) -> f a -> f b

#apply Source

apply :: forall f m a b. Parallel f m => m (a -> b) -> m a -> m b

#pure Source

pure :: forall f a. Applicative f => a -> f a