Community
Modules 15

Control.Comonad.Trans.Traced

provisional

The trace comonad builds up a result by prepending monoidal values to each other.

This module specifies the traced comonad transformer (aka the cowriter or exponential comonad transformer).

Traced comonad

type Traced m = TracedT m Identity

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

Traced comonad transformer

Operations

trace :: Comonad w => m -> TracedT m w a -> a

listen :: Functor w => TracedT m w a -> TracedT m w (a, m)

listens :: Functor w => (m -> b) -> TracedT m w a -> TracedT m w (a, b)

censor :: Functor w => (m -> m) -> TracedT m w a -> TracedT m w a

Instances

8
  • instance Functor w => Functor (TracedT m w)
  • instance (ComonadApply w, Monoid m) => ComonadApply (TracedT m w)
  • instance Applicative w => Applicative (TracedT m w)
  • instance (Comonad w, Monoid m) => Comonad (TracedT m w)
  • instance Monoid m => ComonadTrans (TracedT m)
  • instance ComonadHoist (TracedT m)
  • instance Distributive w => Distributive (TracedT m w)
  • instance FunctorWithIndex i w => FunctorWithIndex (s, i) (TracedT s w)
Maintainer
Edward Kmett <ekmett@gmail.com>
Portability
portable
Copyright
(C) 2008-2014 Edward Kmett
License
BSD-style (see the file LICENSE)
Build record and source files

Community contribution. The service has not verified this documentation.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-aa6debbd-web-3

Metadata snapshot: 654821c0cfecd2668d9ddddd0bf4f45d1d796802db984d918e0d3e66c14a0555

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.