effin-0.3.0.3: A Typeable-free implementation of extensible effects

Safe HaskellNone
LanguageHaskell2010

Control.Effect.Lift

Contents

Synopsis

Documentation

class (Monad m, MemberEffect Lift (Lift m) l) => EffectLift m l Source #

Instances

(Monad m, MemberEffect ((* -> *) -> * -> *) Lift (Lift m) l) => EffectLift m l Source # 

newtype Lift m a Source #

An effect described by a monad.

Constructors

Lift 

Fields

Instances

type Is ((* -> *) -> * -> *) Lift f Source # 
type Is ((* -> *) -> * -> *) Lift f

runLift :: Monad m => Effect (Lift m :+ Nil) a -> m a Source #

Converts a computation containing only monadic effects into a monadic computation.

lift :: EffectLift m l => m a -> Effect l a Source #

Lifts a monadic value into an effect.

liftEffect :: EffectLift m l => m (Effect l a) -> Effect l a Source #

Lifts a monadic value into an effect.

Orphan instances

EffectLift IO l => MonadIO (Effect l) Source # 

Methods

liftIO :: IO a -> Effect l a #