comonad-4.2.5: Comonads

Copyright(C) 2008-2014 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable (fundeps, MPTCs)
Safe HaskellTrustworthy
LanguageHaskell2010

Control.Comonad.Traced

Contents

Description

 

Synopsis

ComonadTraced class

class Comonad w => ComonadTraced m w | w -> m where Source

Methods

trace :: m -> w a -> a Source

Instances

traces :: ComonadTraced m w => (a -> m) -> w a -> a Source

The Traced comonad

traced :: (m -> a) -> Traced m a Source

runTraced :: Traced m a -> m -> a Source

The TracedT comonad transformer

newtype TracedT m w a Source

Constructors

TracedT 

Fields

runTracedT :: w (m -> a)
 

Instances

(ComonadEnv e w, Monoid m) => ComonadEnv e (TracedT m w) 
(ComonadStore s w, Monoid m) => ComonadStore s (TracedT m w) 
(Comonad w, Monoid m) => ComonadTraced m (TracedT m w) 
Monoid m => ComonadTrans (TracedT m) 
Monoid m => ComonadHoist (TracedT m) 
Functor w => Functor (TracedT m w) 
Applicative w => Applicative (TracedT m w) 
Distributive w => Distributive (TracedT m w) 
(ComonadApply w, Monoid m) => ComonadApply (TracedT m w) 
(Comonad w, Monoid m) => Comonad (TracedT m w) 
Typeable (* -> (* -> *) -> * -> *) TracedT 

Re-exported modules