Module

QualifiedDo.Kleisli

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

Kleisli compose do block entries. Example:

import QualifiedDo.Kleisli as ComposeK

-- Equivalent to: a >=> b >=> c
ComposeK.do
  a
  b
  c

#bind Source

bind :: forall m a b c. Bind m => (a -> m b) -> ((a -> m b) -> (b -> m c)) -> (a -> m c)

#discard Source

discard :: forall m a b c. Bind m => (a -> m b) -> (Unit -> (b -> m c)) -> (a -> m c)