category-extras-0.44.1: Various modules and constructs inspired by category theory.

Portabilitynon-portable (functional-dependencies)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Functor.Bifunctor

Contents

Description

transform a pair of functors with a bifunctor deriving a new functor. this subsumes functor product and functor coproduct

Synopsis

Bifunctor functor transformer

type :*: f g a = BifunctorF (,) f g aSource

runProductF :: BifunctorF (,) f g a -> (f a, g a)Source

type :+: f g a = BifunctorF Either f g aSource