Copyright | (C) 2008-2014 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable (fundeps, MPTCs) |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- class Comonad w => ComonadTraced m (w :: Type -> Type) | w -> m where
- trace :: m -> w a -> a
- traces :: ComonadTraced m w => (a -> m) -> w a -> a
- type Traced m = TracedT m Identity
- traced :: (m -> a) -> Traced m a
- runTraced :: Traced m a -> m -> a
- newtype TracedT m (w :: Type -> Type) a = TracedT {
- runTracedT :: w (m -> a)
- module Control.Comonad
- module Control.Comonad.Trans.Class
- module Data.Monoid
ComonadTraced class
class Comonad w => ComonadTraced m (w :: Type -> Type) | w -> m where Source #
Instances
ComonadTraced m w => ComonadTraced m (EnvT e w) Source # | |
Defined in Control.Comonad.Traced.Class | |
ComonadTraced m w => ComonadTraced m (StoreT s w) Source # | |
Defined in Control.Comonad.Traced.Class | |
(Comonad w, Monoid m) => ComonadTraced m (TracedT m w) Source # | |
Defined in Control.Comonad.Traced.Class | |
ComonadTraced m w => ComonadTraced m (IdentityT w) Source # | |
Defined in Control.Comonad.Traced.Class | |
Monoid m => ComonadTraced m ((->) m) Source # | |
Defined in Control.Comonad.Traced.Class |
traces :: ComonadTraced m w => (a -> m) -> w a -> a Source #
The Traced comonad
The TracedT comonad transformer
newtype TracedT m (w :: Type -> Type) a Source #
TracedT | |
|
Instances
Re-exported modules
module Control.Comonad
module Control.Comonad.Trans.Class
module Data.Monoid