Module

Perspectives.DependencyTracking.Array.Trans

#ArrayT

newtype ArrayT m a

The ArrayT monad transformer.

This monad transformer extends the base monad.

Constructors

Instances

#runArrayT

runArrayT :: forall m a. ArrayT m a -> m (Array a)

Run a computation in the ArrayT monad.

#catMaybes

catMaybes :: forall f a. Monad f => ArrayT f (Maybe a) -> ArrayT f a

Remove elements from an array which do not contain a value.

#applyArrayT_

applyArrayT_ :: forall m a b. Monad m => ArrayT m (a -> b) -> ArrayT m a -> ArrayT m b

#liftArrayFunction

liftArrayFunction :: forall m a b. Monad m => (Array a -> Array b) -> ArrayT m a -> ArrayT m b

Use liftArray to lift a function of type Array a -> Array b to a function with type ArrayT m a -> ArrayT m b.

Modules