comonad-5.0.2: Comonads

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

Control.Comonad.Env.Class

Description

 

Documentation

class Comonad w => ComonadEnv e w | w -> e where Source #

Minimal complete definition

ask

Methods

ask :: w a -> e Source #

Instances

ComonadEnv e (Arg e) Source # 

Methods

ask :: Arg e a -> e Source #

ComonadEnv e ((,) e) Source # 

Methods

ask :: (e, a) -> e Source #

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

Methods

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

ComonadEnv e w => ComonadEnv e (IdentityT * w) Source # 

Methods

ask :: IdentityT * w a -> e Source #

ComonadEnv e w => ComonadEnv e (StoreT t w) Source # 

Methods

ask :: StoreT t w a -> e Source #

Comonad w => ComonadEnv e (EnvT e w) Source # 

Methods

ask :: EnvT e w a -> e Source #

asks :: ComonadEnv e w => (e -> e') -> w a -> e' Source #