Module

Control.Monad.Indexed

Package
purescript-indexed-monad
Repository
garyb/purescript-indexed-monad

#IxMonad Source

class (IxApplicative m, IxBind m) <= IxMonad m 

#iap Source

iap :: forall z y x b a m. IxMonad m => m x y (a -> b) -> m y z a -> m x z b

#iwhenM Source

iwhenM :: forall y x m. IxMonad m => m x y Boolean -> m y y Unit -> m x y Unit

#iunlessM Source

iunlessM :: forall y x m. IxMonad m => m x y Boolean -> m y y Unit -> m x y Unit

Re-exports from Control.Applicative.Indexed

#IxApplicative Source

class (IxApply m) <= IxApplicative m  where

Members

  • ipure :: forall x a. a -> m x x a

#iwhen Source

iwhen :: forall x m. IxApplicative m => Boolean -> m x x Unit -> m x x Unit

#iunless Source

iunless :: forall x m. IxApplicative m => Boolean -> m x x Unit -> m x x Unit

Re-exports from Control.Apply.Indexed

#IxApply Source

class (IxFunctor m) <= IxApply m  where

Members

  • iapply :: forall z y x b a. m x y (a -> b) -> m y z a -> m x z b

#iapplySecond Source

iapplySecond :: forall z y x b a m. IxApply m => m x y a -> m y z b -> m x z b

#iapplyFirst Source

iapplyFirst :: forall z y x b a m. IxApply m => m x y a -> m y z b -> m x z a

#(<*:) Source

Operator alias for Control.Apply.Indexed.iapplyFirst (left-associative / precedence 4)

#(:*>) Source

Operator alias for Control.Apply.Indexed.iapplySecond (left-associative / precedence 4)

Re-exports from Control.Bind.Indexed

#IxBind Source

class (IxApply m) <= IxBind m  where

Members

  • ibind :: forall z y x b a. m x y a -> (a -> m y z b) -> m x z b

#ibindFlipped Source

ibindFlipped :: forall z y x b a m. IxBind m => (a -> m y z b) -> m x y a -> m x z b

#composeiKleisliFlipped Source

composeiKleisliFlipped :: forall z y x c b a m. IxBind m => (b -> m y z c) -> (a -> m x y b) -> a -> m x z c

#composeiKleisli Source

composeiKleisli :: forall z y x c b a m. IxBind m => (a -> m x y b) -> (b -> m y z c) -> a -> m x z c

#(=<<:) Source

Operator alias for Control.Bind.Indexed.ibindFlipped (right-associative / precedence 1)

#(<=<:) Source

Operator alias for Control.Bind.Indexed.composeiKleisliFlipped (right-associative / precedence 1)

#(:>>=) Source

Operator alias for Control.Bind.Indexed.ibind (left-associative / precedence 1)

#(:>=>) Source

Operator alias for Control.Bind.Indexed.composeiKleisli (right-associative / precedence 1)

Re-exports from Data.Functor.Indexed

#IxFunctor Source

class IxFunctor f  where

Members

  • imap :: forall y x b a. (a -> b) -> f x y a -> f x y b

#ivoidRight Source

ivoidRight :: forall y x b a f. IxFunctor f => a -> f x y b -> f x y a

#ivoidLeft Source

ivoidLeft :: forall y x b a f. IxFunctor f => f x y a -> b -> f x y b

#ivoid Source

ivoid :: forall y x a f. IxFunctor f => f x y a -> f x y Unit

#(<$:) Source

Operator alias for Data.Functor.Indexed.ivoidRight (left-associative / precedence 4)

#(:$>) Source

Operator alias for Data.Functor.Indexed.ivoidLeft (left-associative / precedence 4)