Module

QualifiedDo.ParAlt

Package
purescript-qualified-do
Repository
artemisSystem/purescript-qualified-do

Accumulate do block entries in an Alt using its Parallel instance. Example:

import QualifiedDo.ParAlt as ParAlt

-- Equivalent to: parOneOf [ a, b, c ]
ParAlt.do
  a
  b
  c

#bind Source

bind :: forall f m a. Parallel f m => Alt f => m a -> (m a -> m a) -> m a

#discard Source

discard :: forall f m a. Parallel f m => Alt f => m a -> (Unit -> m a) -> m a