asai-0.0.0.0: A minimal library for delimited continuations.

Portabilityportable
Stabilityexperimental
Maintainermad.one@gmail.com
Safe HaskellSafe-Inferred

Control.Indexed.Applicative

Contents

Description

Indexed Applicative.

Synopsis

Indexed Applicatives

class (IxFunctor f, IxPointed f) => IxApplicative f whereSource

Indexed Applicative class.

Methods

(<!*>) :: f s t (a -> b) -> f t u a -> f s u bSource

Indexed <*>.

(!*>) :: f s t a -> f t u b -> f s u bSource

Indexed *>.

(<!*) :: f s t a -> f t u b -> f s u aSource

Indexed <*.

Instances

IxApplicative Delim

Delimited continuations form an IxApplicative.

Monad m => IxApplicative (MW m)

Lifts regular instances of Monad into IxApplicative.

Other functions

liftIxA :: IxApplicative f => (a -> b) -> f t u a -> f t u bSource

This is liftA for indexed Applicatives.

liftIxA2 :: IxApplicative f => (a -> b -> c) -> f s t a -> f t u b -> f s u cSource

This is liftA2 for indexed Applicatives.