 | category-extras-0.53.6: Various modules and constructs inspired by category theory | Contents | Index |
|
| Control.Comonad.Context | | Portability | non-portable (MPTCs) | | Stability | experimental | | Maintainer | Edward Kmett <ekmett@gmail.com> |
|
|
|
| Description |
| The Context Comonad Transformer is related to the left Kan Extension Lan of
a comonad along itself, except the type of the context is fixed, and
not existentially quantified.
|
|
|
| Documentation |
|
| module Control.Comonad |
|
| class Comonad w => ComonadContext s w | w -> s where |
| | Methods | | getC :: w a -> s | | | modifyC :: (s -> s) -> w a -> a |
| | Instances | |
|
|
| putC :: ComonadContext s w => s -> w a -> a |
|
| experiment :: (ComonadContext s w, Functor f) => f (s -> s) -> w a -> f a |
|
| data Context s a |
| Constructors | | Instances | |
|
|
| runContext :: (Context s s -> Context s b) -> s -> (b, s) |
|
| newtype ContextT s w a |
| Constructors | | ContextT | | | runContextT :: (w s -> a, w s) | |
|
| Instances | |
|
|
| Produced by Haddock version 2.1.0 |