comonad-5: Comonads

Copyright(C) 2008-2013 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Control.Comonad.Hoist.Class

Description

 

Documentation

class ComonadHoist t where #

Minimal complete definition

cohoist

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> t w a -> t v a #

Given any comonad-homomorphism from w to v this yields a comonad homomorphism from t w to t v.

Instances

ComonadHoist (IdentityT *) # 

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> IdentityT * w a -> IdentityT * v a #

ComonadHoist (EnvT e) # 

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> EnvT e w a -> EnvT e v a #

ComonadHoist (StoreT s) # 

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> StoreT s w a -> StoreT s v a #

ComonadHoist (TracedT m) # 

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> TracedT m w a -> TracedT m v a #