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
convert :: a -> b
Instances
Convert (Statements a) (Statements a)
Convert a (Statements a)
#Statements Source
newtype Statements a
Instances
Convert (Statements a) (Statements a)
Convert a (Statements a)
Semigroup (Statements a)
#unStatements Source
unStatements :: forall a. Statements a -> NonEmptyArray a
#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