mix-arrows-0.2: Mixing effects of one arrow into another one

Control.Arrow.Mix.Along

Description

Category of arrows and arrow-like structures.

Synopsis

Documentation

type :~> f g = forall i o. f i o -> g i oSource

Arrow morphism

type Along f i o input output = f (input, i) (output, o)Source

Sometimes we need to refine our morphism a bit; therefore, we use Along f i o instead of just f.

class AlongMap f whereSource

Something like a functor

Methods

alongMap :: (Arrow b, Arrow c) => (Along b i1 o1 :~> Along c i2 o2) -> Along (f b) i1 o1 :~> Along (f c) i2 o2Source

Instances