Module

QualifiedDo.Unfoldable

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

Accumulate do block entries in an Unfoldable1. Example:

import QualifiedDo.Unfoldable as U

-- Equivalent to: [a, b, c]
U.unfold U.do
  a
  b
  c

#unfold Source

unfold :: forall f a s. Convert s (Statements a) => Unfoldable1 f => s -> f a

Re-exports from QualifiedDo.Statements

#discard Source

discard :: forall s a. Convert s (Statements a) => a -> (Unit -> s) -> Statements a

#bind Source

bind :: forall s a. Convert s (Statements a) => a -> (a -> s) -> Statements a