Module

QualifiedDo.Semigroup

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

Accumulate do block entries in a Semigroup. Example:

import QualifiedDo.Semigroup as S

-- Equivalent to: fold [ a, b, c ]
S.do
  a
  b
  c

#bind Source

bind :: forall a. Semigroup a => a -> (a -> a) -> a

#discard Source

discard :: forall a. Semigroup a => a -> (Unit -> a) -> a