category-extras-0.44.1: Various modules and constructs inspired by category theory.Source codeContentsIndex
Control.Functor.Adjunction
Portabilitynon-portable (functional-dependencies)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Synopsis
class (Functor f, Functor g) => Adjunction f g where
unit :: a -> g (f a)
counit :: f (g a) -> a
leftAdjunct :: (f a -> b) -> a -> g b
rightAdjunct :: (a -> g b) -> f a -> b
newtype ACompF f g a = ACompF (CompF f g a)
Documentation
class (Functor f, Functor g) => Adjunction f g whereSource
An Adjunction formed by the Functor f and Functor g.
Methods
unit :: a -> g (f a)Source
counit :: f (g a) -> aSource
leftAdjunct :: (f a -> b) -> a -> g bSource
rightAdjunct :: (a -> g b) -> f a -> bSource
newtype ACompF f g a Source
Constructors
ACompF (CompF f g a)
show/hide Instances
Produced by Haddock version 2.1.0