Module

QualifiedDo.Statements

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

This module is intended for internal use.

Importing this module qualified and using qualified do has these results:

import QualifiedDo.Statements as S

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

-- Equivalent to: a
S.do
  a

You can use the Convert typeclass to make funcitons that accept both a and Statements a.

#Convert Source

class Convert a b | a -> b where

Members

Instances

#unStatements Source

#bind Source

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

#discard Source

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