Kleislify-0.0.1: Variants of Control.Arrow functions, specialised to kleislis.

Portabilityportable
Stabilityexperimental
Maintainerdylan@techtangents.com

Control.Kleislify

Description

Variants of Control.Arrow functions, specialised to kleislis. Avoids boxing into Kleisli values.

Synopsis

Documentation

(^=>) :: Monad m => (b -> c) -> (c -> m d) -> b -> m dSource

Kleisli precomposition of a monad with a pure function. Equivalent to ^>>

(=>^) :: Monad m => (b -> m c) -> (c -> d) -> b -> m dSource

Kleisli postcomposition of a monad with a pure function. Equivalent to >>^

(<=^) :: Monad m => (c -> m d) -> (b -> c) -> b -> m dSource

Kleisli precomposition of a monad with a pure function (right-to-left variant). Equivalent to <<^

(^<=) :: Monad m => (c -> d) -> (b -> m c) -> b -> m dSource

Kleisli postcomposition of a monad with a pure function (right-to-left variant). Equivalent to ^<<