comonad-4.0: Comonads

Portabilitynon-portable (fundeps, MPTCs)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellTrustworthy

Control.Comonad.Traced

Contents

Description

 

Synopsis

ComonadTraced class

class Comonad w => ComonadTraced m w | w -> m whereSource

Methods

trace :: m -> w a -> aSource

Instances

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

The Traced comonad

type Traced m = TracedT m IdentitySource

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

runTraced :: Traced m a -> m -> aSource

The TracedT comonad transformer

newtype TracedT m w a Source

Constructors

TracedT 

Fields

runTracedT :: w (m -> a)
 

Re-exported modules