adjunctions-2.4: Adjunctions

PortabilityMPTCs, fundeps
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Control.Comonad.Trans.Adjoint

Description

 

Documentation

runAdjoint :: Functor f => Adjoint f g a -> f (g a)Source

adjoint :: Functor f => f (g a) -> Adjoint f g aSource

newtype AdjointT f g w a Source

Constructors

AdjointT 

Fields

runAdjointT :: f (w (g a))
 

Instances

(Adjunction f g, Distributive g) => ComonadTrans (AdjointT f g) 
(Adjunction f g, Functor w) => Functor (AdjointT f g w) 
(Adjunction f g, Comonad w) => Comonad (AdjointT f g w) 
(Adjunction f g, Extend w) => Extend (AdjointT f g w)