Module

QualifiedDo.Alt

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

Accumulate do block entries in an Alt. Example:

import QualifiedDo.Alt as Alt

-- Equivalent to: oneOf [ a, b, c ]
Alt.do
  a
  b
  c

#bind Source

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

#discard Source

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