comonad-5.0.2: Comonads

Copyright | (C) 2008-2013 Edward Kmett
License | BSD-style (see the file LICENSE)
Maintainer | Edward Kmett <ekmett@gmail.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell2010

Control.Comonad.Hoist.Class

Description

# Documentation

class ComonadHoist t where Source #

Minimal complete definition

cohoist

Methods

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

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

Instances

ComonadHoist (IdentityT *) Source # |
Methods cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> IdentityT * w a -> IdentityT * v a Source #
ComonadHoist (EnvT e) Source # |
Methods cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> EnvT e w a -> EnvT e v a Source #
ComonadHoist (StoreT s) Source # |
Methods cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> StoreT s w a -> StoreT s v a Source #
ComonadHoist (TracedT m) Source # |
Methods cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> TracedT m w a -> TracedT m v a Source #