comonad-5.0.4: Comonads

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

Control.Comonad.Traced

Contents

Description

 
Synopsis

ComonadTraced class

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

Minimal complete definition

trace

Methods

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

Instances
ComonadTraced m w => ComonadTraced m (StoreT s w) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

trace :: m -> StoreT s w a -> a Source #

ComonadTraced m w => ComonadTraced m (EnvT e w) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

trace :: m -> EnvT e w a -> a Source #

ComonadTraced m w => ComonadTraced m (IdentityT w) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

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

(Comonad w, Monoid m) => ComonadTraced m (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

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

Monoid m => ComonadTraced m ((->) m :: * -> *) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

trace :: m -> (m -> a) -> a Source #

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

Instances
(Comonad w, Monoid m) => ComonadTraced m (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Traced.Class

Methods

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

(ComonadStore s w, Monoid m) => ComonadStore s (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Store.Class

Methods

pos :: TracedT m w a -> s Source #

peek :: s -> TracedT m w a -> a Source #

peeks :: (s -> s) -> TracedT m w a -> a Source #

seek :: s -> TracedT m w a -> TracedT m w a Source #

seeks :: (s -> s) -> TracedT m w a -> TracedT m w a Source #

experiment :: Functor f => (s -> f s) -> TracedT m w a -> f a Source #

(ComonadEnv e w, Monoid m) => ComonadEnv e (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Env.Class

Methods

ask :: TracedT m w a -> e Source #

ComonadHoist (TracedT m) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

cohoist :: (Comonad w, Comonad v) => (forall x. w x -> v x) -> TracedT m w a -> TracedT m v a Source #

Monoid m => ComonadTrans (TracedT m) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

lower :: Comonad w => TracedT m w a -> w a Source #

Functor w => Functor (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

fmap :: (a -> b) -> TracedT m w a -> TracedT m w b #

(<$) :: a -> TracedT m w b -> TracedT m w a #

Applicative w => Applicative (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

pure :: a -> TracedT m w a #

(<*>) :: TracedT m w (a -> b) -> TracedT m w a -> TracedT m w b #

liftA2 :: (a -> b -> c) -> TracedT m w a -> TracedT m w b -> TracedT m w c #

(*>) :: TracedT m w a -> TracedT m w b -> TracedT m w b #

(<*) :: TracedT m w a -> TracedT m w b -> TracedT m w a #

Distributive w => Distributive (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

distribute :: Functor f => f (TracedT m w a) -> TracedT m w (f a) #

collect :: Functor f => (a -> TracedT m w b) -> f a -> TracedT m w (f b) #

distributeM :: Monad m0 => m0 (TracedT m w a) -> TracedT m w (m0 a) #

collectM :: Monad m0 => (a -> TracedT m w b) -> m0 a -> TracedT m w (m0 b) #

(ComonadApply w, Monoid m) => ComonadApply (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

(<@>) :: TracedT m w (a -> b) -> TracedT m w a -> TracedT m w b Source #

(@>) :: TracedT m w a -> TracedT m w b -> TracedT m w b Source #

(<@) :: TracedT m w a -> TracedT m w b -> TracedT m w a Source #

(Comonad w, Monoid m) => Comonad (TracedT m w) Source # 
Instance details

Defined in Control.Comonad.Trans.Traced

Methods

extract :: TracedT m w a -> a Source #

duplicate :: TracedT m w a -> TracedT m w (TracedT m w a) Source #

extend :: (TracedT m w a -> b) -> TracedT m w a -> TracedT m w b Source #

Re-exported modules