adjunctions-4.3: Adjunctions and representable functors

Copyright(C) 2011-2013 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
PortabilityMPTCs, fundeps
Safe HaskellSafe
LanguageHaskell98

Control.Comonad.Trans.Adjoint

Description

 

Documentation

type Adjoint f g = AdjointT f g Identity

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

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

newtype AdjointT f g w a

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)