in-other-words-0.2.0.0: A higher-order effect system where the sky's the limit
Safe HaskellNone
LanguageHaskell2010

Control.Effect.Writer

Synopsis

Effects

data Tell o :: Effect where Source #

An effect for arbitrary output.

Constructors

Tell :: o -> Tell o m () 

Instances

Instances details
(Monoid w, Carrier m, Threaders '[SteppedThreads] m p) => PrimHandler ListenSteppedH (ListenPrim w) (SteppedC (Tell w) m) Source # 
Instance details

Defined in Control.Effect.Internal.Intercept

data Listen o :: Effect where Source #

An effect for hearing what a computation has to tell.

Constructors

Listen :: m a -> Listen o m (o, a) 

Instances

Instances details
Eff (ListenPrim w) m => Handler ListenSteppedH (Listen w) m Source # 
Instance details

Defined in Control.Effect.Internal.Intercept

newtype Pass o :: Effect where Source #

An effect for altering what a computation tells.

Constructors

Pass :: m (o -> o, a) -> Pass o m a 

type Writer o = Bundle '[Tell o, Listen o, Pass o] Source #

A pseudo-effect for connected Tell o, Listen o and Pass o effects.

Writer should only ever be used inside of Eff and Effs constraints. It is not a real effect! See Bundle.

Actions

tell :: Eff (Tell o) m => o -> m () Source #

listen :: Eff (Listen o) m => m a -> m (o, a) Source #

pass :: Eff (Pass o) m => m (o -> o, a) -> m a Source #

censor :: Eff (Pass o) m => (o -> o) -> m a -> m a Source #

Interpretations for Tell

runTell :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterThreads] m p) => TellC o m a -> m (o, a) Source #

Run a Tell o effect, where o is a Monoid, by accumulating all the uses of tell.

You may want to combine this with tellIntoTell.

Unlike runListen and runWriter, this does not provide the ability to interact with the tells through listen and pass; but also doesn't impose any primitive effects, meaning runTell doesn't restrict what interpreters are run before it.

Derivs (TellC o m) = Tell o ': Derivs m
Prims  (TellC o m) = Prims m

This produces the final accumulation o strictly. See runTellLazy for a lazy variant of this.

runTellLazy :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterLazyThreads] m p) => TellLazyC o m a -> m (o, a) Source #

Run a Tell o effect, where o is a Monoid, by accumulating all the uses of tell lazily.

Derivs (TellLazyC o m) = Tell o ': Derivs m
Prims  (TellLazyC o m) = Prims m

This is a variant of runTell that produces the final accumulation lazily. Use this only if you need the laziness, as this would otherwise incur an unneccesary space leak.

runTellList :: forall o m a p. (Carrier m, Threaders '[WriterThreads] m p) => TellListC o m a -> m ([o], a) Source #

Run a Tell o effect by gathering the tells into a list.

Derivs (TellListC o m) = Tell o ': Derivs m
Prims  (TellListC o m) = Prims m

The resulting list is produced strictly. See runTellListLazy for a lazy variant.

runTellListLazy :: forall o m a p. (Carrier m, Threaders '[WriterLazyThreads] m p) => TellListLazyC o m a -> m ([o], a) Source #

Run a Tell o by gathering the tells into a list.

Derivs (TellListLazyC o m) = Tell o ': Derivs m
Prims  (TellListLazyC o m) = Prims m

This is a variant of runTellList that produces the final list lazily. Use this only if you need the laziness, as this would otherwise incur an unneccesary space leak.

tellToIO :: forall o m a. (Monoid o, Eff (Embed IO) m) => InterpretReifiedC (Tell o) m a -> m (o, a) Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through atomic operations in IO.

You may want to combine this with tellIntoTell.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes tellToIO very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower tellToIOSimple, which doesn't have a higher-rank type.

runTellIORef :: forall o m a. (Monoid o, Eff (Embed IO) m) => IORef o -> InterpretReifiedC (Tell o) m a -> m a Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through using atomic operations in IO over the provided IORef.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes runTellIORef very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower runTellIORefSimple, which doesn't have a higher-rank type.

runTellTVar :: forall o m a. (Monoid o, Eff (Embed IO) m) => TVar o -> InterpretReifiedC (Tell o) m a -> m a Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through using atomic operations in IO over the provided TVar.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes runTellTVar very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower runTellTVarSimple, which doesn't have a higher-rank type.

runTellAction :: forall o m a. Carrier m => (o -> m ()) -> InterpretReifiedC (Tell o) m a -> m a Source #

Run a Tell effect by providing an action to be executed at each use of tell.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes runTellAction very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower runTellActionSimple, which doesn't have a higher-rank type.

Since: 0.1.1.0

tellIntoEndoTell :: (Monoid o, HeadEff (Tell (Endo o)) m) => TellIntoEndoTellC o m a -> m a Source #

Rewrite a Tell o effect into a Tell (Endo o) effect.

This effectively right-associates all uses of tell, which asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. In particular, you should use this (if you can be bothered) if the monoid is a list, such as String.

Usage is to combine this with the Tell interpreter of your choice, followed by fromEndoWriter, like this:

   run
 $ ...
 $ fromEndoWriter
 $ runTell
 $ tellIntoEndoTell @String -- The Monoid must be specified
 $ ...

tellToTell :: forall o o' m a. Eff (Tell o') m => (o -> o') -> InterpretReifiedC (Tell o) m a -> m a Source #

Transform a Tell effect into another Tell effect by providing a function to transform the type told.

This is useful to transform a Tell o effect where o isn't a Monoid into a Tell o' effect where o' is a Monoid, and thus can be interpreted using the various Monoidal Tell interpreters.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes tellToTell very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower tellToTellSimple, which doesn't have a higher-rank type.

tellIntoTell :: forall o o' m a. HeadEff (Tell o') m => (o -> o') -> ReinterpretReifiedC (Tell o) '[Tell o'] m a -> m a Source #

Rewrite a Tell effect into another Tell effect on top of the effect stack by providing a function to transform the type told.

This is useful to rewrite a Tell o effect where o isn't a Monoid into a Tell t effect where t is a Monoid, and thus can be interpreted using the various Monoidal Tell interpreters.

This has a higher-rank type, as it makes use of InterpretReifiedC. This makes tellToTell very difficult to use partially applied. In particular, it can't be composed using ..

If performance is secondary, consider using the slower tellIntoTellSimple, which doesn't have a higher-rank type.

ignoreTell :: forall o m a. Carrier m => IgnoreTellC o m a -> m a Source #

Run a Tell effect by ignoring it, doing no output at all.

Since: 0.1.1.0

Simple variants of interpretations for Tell

tellToIOSimple :: forall o m a p. (Monoid o, Eff (Embed IO) m, Threaders '[ReaderThreads] m p) => InterpretSimpleC (Tell o) m a -> m (o, a) Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through atomic operations in IO.

You may want to combine this with tellIntoTellSimple.

This is a less performant version of tellToIO that doesn't have a higher-rank type, making it much easier to use partially applied.

runTellIORefSimple :: forall o m a p. (Monoid o, Eff (Embed IO) m, Threaders '[ReaderThreads] m p) => IORef o -> InterpretSimpleC (Tell o) m a -> m a Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through using atomic operations in IO over the provided IORef.

This is a less performant version of tellToIO that doesn't have a higher-rank type, making it much easier to use partially applied.

runTellTVarSimple :: forall o m a p. (Monoid o, Eff (Embed IO) m, Threaders '[ReaderThreads] m p) => TVar o -> InterpretSimpleC (Tell o) m a -> m a Source #

Run a Tell o effect where o is a Monoid by accumulating uses of tell through using atomic operations in IO over the provided TVar.

This is a less performant version of tellToIO that doesn't have a higher-rank type, making it much easier to use partially applied.

runTellActionSimple :: forall o m a p. (Carrier m, Threaders '[ReaderThreads] m p) => (o -> m ()) -> InterpretSimpleC (Tell o) m a -> m a Source #

Run a Tell effect by providing an action to be executed at each use of tell.

This is a less performant version of runTellAction that doesn't have a higher-rank type, making it much easier to use partially applied.

tellToTellSimple :: forall o o' m a p. (Eff (Tell o') m, Threaders '[ReaderThreads] m p) => (o -> o') -> InterpretSimpleC (Tell o) m a -> m a Source #

Transform a Tell effect into another Tell effect by providing a function to transform the type told.

This is useful to transform a Tell o where o isn't a Monoid into a Tell p effect where p is a Monoid, and thus can be interpreted using the various Monoidal Tell interpreters.

This is a less performant version of tellToTell that doesn't have a higher-rank type, making it much easier to use partially applied.

tellIntoTellSimple :: forall o o' m a p. (HeadEff (Tell o') m, Threaders '[ReaderThreads] m p) => (o -> o') -> ReinterpretSimpleC (Tell o) '[Tell o'] m a -> m a Source #

Rewrite a Tell effect into another Tell effect on top of the effect stack by providing a function to transform the type told.

This is useful to rewrite a Tell o effect where o isn't a Monoid into a Tell o' effect where o' is a Monoid, and thus can be interpreted using the various Monoidal Tell interpreters.

This is a less performant version of tellIntoTell that doesn't have a higher-rank type, making it much easier to use partially applied.

Interpretations for Tell + Listen

runListen :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterThreads] m p) => ListenC o m a -> m (o, a) Source #

Run connected Listen o and Tell o effects, where o is a Monoid, by accumulating all the uses of tell.

Unlike runWriter, this does not provide the power of pass; but because of that, it also doesn't impose Pass as a primitive effect, meaning a larger variety of interpreters may be run before runListen compared to runWriter.

Derivs (ListenC o m) = Listen o ': Tell o ': Derivs m
Prims  (ListenC o m) = ListenPrim o ': Prims m

This produces the final accumulation strictly. See runListenLazy for a lazy variant of this.

runListenLazy :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterThreads] m p) => ListenLazyC o m a -> m (o, a) Source #

Run connected Listen o and Tell o effects, where o is a Monoid, by accumulating all the uses of tell lazily.

Derivs (ListenLazyC o m) = Listen o ': Tell o ': Derivs m
Prims  (ListenLazyC o m) = ListenPrim o ': Prims m

This is a variant of runListen that produces the final accumulation lazily. Use this only if you need the laziness, as this would otherwise incur an unneccesary space leak.

listenToIO :: forall o m a p. (Monoid o, Eff (Embed IO) m, MonadMask m, Threaders '[ReaderThreads] m p) => ListenTVarC o m a -> m (o, a) Source #

Run connected Listen o and Tell o effects by accumulating uses of tell through using atomic operations in IO.

Derivs (ListenTVarC o m) = Listen o ': Tell o ': Derivs m
Prims  (ListenTVarC o m) = ListenPrim o ': ReaderPrim (o -> STM ()) ': Prims m

Note that unlike tellToIO, this does not have a higher-rank type.

runListenTVar :: forall o m a p. (Monoid o, Eff (Embed IO) m, MonadMask m, Threaders '[ReaderThreads] m p) => TVar o -> ListenTVarC o m a -> m a Source #

Run connected Listen o and Tell o effects by accumulating uses of tell through using atomic operations in IO over the provided TVar.

Derivs (ListenTVarC o m) = Listen o : Tell o ': Derivs m
Prims  (ListenTVarC o m) = ListenPrim o ': ReaderPrim (o -> STM ()) ': Prims m

Note that unlike runTellTVar, this does not have a higher-rank type.

listenIntoEndoListen :: (Monoid o, HeadEffs '[Listen (Endo o), Tell (Endo o)] m) => ListenIntoEndoListenC o m a -> m a Source #

Rewrite connected Listen o and Tell o effects into connected Listen (Endo o) and Tell (Endo o) effects.

This effectively right-associates all uses of tell, which asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. In particular, you should use this (if you can be bothered) if the monoid is a list, such as String.

Usage is to combine this with the Listen interpreter of your choice, followed by fromEndoWriter, like this:

   run
 $ ...
 $ fromEndoWriter
 $ runListen
 $ listenIntoEndoListen @String -- The Monoid must be specified
 $ ...

Interpretations for Writer (Tell + Listen + Pass)

runWriter :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterThreads] m p) => WriterC o m a -> m (o, a) Source #

Run connected Pass o, Listen o and Tell o effects, -- i.e. Writer o -- where o is a Monoid, by accumulating all the uses of tell.

Pass o is a fairly restrictive primitive effect. Notably, runCont can't be used before runWriter. If you don't need pass, consider using runTell or runListen instead.

Derivs (WriterC o m) = Pass o ': Listen o ': Tell o ': Derivs m
Prims  (WriterC o m) = WriterPrim o ': Prims m

This produces the final accumulation strictly. See runWriterLazy for a lazy variant of this.

runWriterLazy :: forall o m a p. (Monoid o, Carrier m, Threaders '[WriterLazyThreads] m p) => WriterLazyC o m a -> m (o, a) Source #

Run connected Pass o, Listen o and Tell o effects, -- i.e. Writer o -- where o is a Monoid, by accumulating all the uses of tell lazily.

Derivs (ListenLazyC o m) = Pass o ': Listen o ': Tell o ': Derivs m
Prims  (ListenLazyC o m) = WriterPrim o ': Prims m

This is a variant of runListen that produces the final accumulation lazily. Use this only if you need the laziness, as this would otherwise incur an unneccesary space leak.

writerToIO :: forall o m a p. (Monoid o, Eff (Embed IO) m, MonadMask m, Threaders '[ReaderThreads] m p) => WriterTVarC o m a -> m (o, a) Source #

Run connected Pass o, Listen o and Tell o effects -- i.e. Writer o -- by accumulating uses of tell through using atomic operations in IO.

Derivs (WriterTVarC o m) = Pass o ': Listen o : Tell o ': Derivs m
Prims  (WriterTVarC o m) = WriterPrim o ': ReaderPrim (o -> STM ()) ': Prims m

Note that unlike tellToIO, this does not have a higher-rank type.

runWriterTVar :: forall o m a p. (Monoid o, Eff (Embed IO) m, MonadMask m, Threaders '[ReaderThreads] m p) => TVar o -> WriterTVarC o m a -> m a Source #

Run connected Pass o, Listen o and Tell o effects -- i.e. Writer o -- by accumulating uses of tell through using atomic operations in IO over a TVar.

Derivs (WriterTVarC o m) = Pass o ': Listen o : Tell o ': Derivs m
Prims  (WriterTVarC o m) = WriterPrim o ': ReaderPrim (o -> STM ()) ': Prims m

Note that unlike runTellTVar, this does not have a higher-rank type.

writerToBracket :: forall o m a p. (Monoid o, Effs [Embed IO, Bracket] m, Threaders '[ReaderThreads] m p) => WriterToBracketC o m a -> m (o, a) Source #

Run connected Pass o, Listen o and Tell o effects -- i.e. Writer o -- by accumulating uses of tell through using atomic operations in IO, relying on the provided protection of Bracket for the implementation.

Derivs (WriterToBracketC o m) = Pass o ': Listen o : Tell o ': Derivs m
Prims  (WriterToBracketC o m) = ReaderPrim (o -> STM ()) ': Prims m

Note that unlike tellToIO, this does not have a higher-rank type.

writerToBracketTVar :: forall o m a p. (Monoid o, Effs [Embed IO, Bracket] m, Threaders '[ReaderThreads] m p) => TVar o -> WriterToBracketC o m a -> m a Source #

Run connected Pass o, Listen o and Tell o effects -- i.e. Writer o -- by accumulating uses of tell through using atomic operations in IO over a TVar, relying on the provided protection of Bracket for the implementation.

Derivs (WriterToBracketC o m) = Pass o ': Listen o : Tell o ': Derivs m
Prims  (WriterToBracketC o m) = ReaderPrim (o -> STM ()) ': Prims m

Note that unlike runTellTVar, this does not have a higher-rank type.

writerIntoEndoWriter :: (Monoid o, HeadEffs '[Pass (Endo o), Listen (Endo o), Tell (Endo o)] m) => WriterIntoEndoWriterC o m a -> m a Source #

Rewrite connected Pass o, Listen o and Tell o effects -- i.e. Writer o -- into connected Pass (Endo o), Listen (Endo o) and Tell (Endo o) effects on top of the effect stack -- i.e. Writer (Endo o).

This effectively right-associates all uses of tell, which asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. In particular, you should use this (if you can be bothered) if the monoid is a list, such as String.

Usage is to combine this with the Writer interpreter of your choice, followed by fromEndoWriter, like this:

   run
 $ ...
 $ fromEndoWriter
 $ runWriter
 $ writerIntoEndoWriter @String -- The Monoid must be specified
 $ ...

Other utilities

fromEndoWriter :: (Monoid o, Functor f) => f (Endo o, a) -> f (o, a) Source #

Threading constraints

class (forall o. Monoid o => Threads (WriterT o) p) => WriterThreads p Source #

WriterThreads accepts the following primitive effects:

Instances

Instances details
(forall o. Monoid o => Threads (WriterT o) p) => WriterThreads p Source # 
Instance details

Defined in Control.Effect.Internal.Writer

class (forall o. Monoid o => Threads (WriterT o) p) => WriterLazyThreads p Source #

WriterLazyThreads accepts the following primitive effects:

Instances

Instances details
(forall o. Monoid o => Threads (WriterT o) p) => WriterLazyThreads p Source # 
Instance details

Defined in Control.Effect.Internal.Writer

MonadMask

class MonadCatch m => MonadMask (m :: Type -> Type) #

A class for monads which provide for the ability to account for all possible exit points from a computation, and to mask asynchronous exceptions. Continuation-based monads are invalid instances of this class.

Instances should ensure that, in the following code:

fg = f `finally` g

The action g is called regardless of what occurs within f, including async exceptions. Some monads allow f to abort the computation via other effects than throwing an exception. For simplicity, we will consider aborting and throwing an exception to be two forms of "throwing an error".

If f and g both throw an error, the error thrown by fg depends on which errors we're talking about. In a monad transformer stack, the deeper layers override the effects of the inner layers; for example, ExceptT e1 (Except e2) a represents a value of type Either e2 (Either e1 a), so throwing both an e1 and an e2 will result in Left e2. If f and g both throw an error from the same layer, instances should ensure that the error from g wins.

Effects other than throwing an error are also overriden by the deeper layers. For example, StateT s Maybe a represents a value of type s -> Maybe (a, s), so if an error thrown from f causes this function to return Nothing, any changes to the state which f also performed will be erased. As a result, g will see the state as it was before f. Once g completes, f's error will be rethrown, so g' state changes will be erased as well. This is the normal interaction between effects in a monad transformer stack.

By contrast, lifted-base's version of finally always discards all of g's non-IO effects, and g never sees any of f's non-IO effects, regardless of the layer ordering and regardless of whether f throws an error. This is not the result of interacting effects, but a consequence of MonadBaseControl's approach.

Minimal complete definition

mask, uninterruptibleMask, generalBracket

Instances

Instances details
MonadMask IO 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

uninterruptibleMask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

generalBracket :: IO a -> (a -> ExitCase b -> IO c) -> (a -> IO b) -> IO (b, c) #

e ~ SomeException => MonadMask (Either e)

Since: exceptions-0.8.3

Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. Either e a -> Either e a) -> Either e b) -> Either e b #

uninterruptibleMask :: ((forall a. Either e a -> Either e a) -> Either e b) -> Either e b #

generalBracket :: Either e a -> (a -> ExitCase b -> Either e c) -> (a -> Either e b) -> Either e (b, c) #

MonadMask m => MonadMask (MaybeT m)

Since: exceptions-0.10.0

Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. MaybeT m a -> MaybeT m a) -> MaybeT m b) -> MaybeT m b #

uninterruptibleMask :: ((forall a. MaybeT m a -> MaybeT m a) -> MaybeT m b) -> MaybeT m b #

generalBracket :: MaybeT m a -> (a -> ExitCase b -> MaybeT m c) -> (a -> MaybeT m b) -> MaybeT m (b, c) #

MonadMask m => MonadMask (ErrorIOToIOC m) Source # 
Instance details

Defined in Control.Effect.Internal.ErrorIO

Methods

mask :: ((forall a. ErrorIOToIOC m a -> ErrorIOToIOC m a) -> ErrorIOToIOC m b) -> ErrorIOToIOC m b #

uninterruptibleMask :: ((forall a. ErrorIOToIOC m a -> ErrorIOToIOC m a) -> ErrorIOToIOC m b) -> ErrorIOToIOC m b #

generalBracket :: ErrorIOToIOC m a -> (a -> ExitCase b -> ErrorIOToIOC m c) -> (a -> ErrorIOToIOC m b) -> ErrorIOToIOC m (b, c) #

MonadMask m => MonadMask (ConcToIOC m) Source # 
Instance details

Defined in Control.Effect.Internal.Conc

Methods

mask :: ((forall a. ConcToIOC m a -> ConcToIOC m a) -> ConcToIOC m b) -> ConcToIOC m b #

uninterruptibleMask :: ((forall a. ConcToIOC m a -> ConcToIOC m a) -> ConcToIOC m b) -> ConcToIOC m b #

generalBracket :: ConcToIOC m a -> (a -> ExitCase b -> ConcToIOC m c) -> (a -> ConcToIOC m b) -> ConcToIOC m (b, c) #

MonadMask m => MonadMask (TraceListC m) Source # 
Instance details

Defined in Control.Effect.Trace

Methods

mask :: ((forall a. TraceListC m a -> TraceListC m a) -> TraceListC m b) -> TraceListC m b #

uninterruptibleMask :: ((forall a. TraceListC m a -> TraceListC m a) -> TraceListC m b) -> TraceListC m b #

generalBracket :: TraceListC m a -> (a -> ExitCase b -> TraceListC m c) -> (a -> TraceListC m b) -> TraceListC m (b, c) #

MonadMask m => MonadMask (InterpretFailSimpleC m) Source # 
Instance details

Defined in Control.Effect.Fail

MonadMask m => MonadMask (FailC m) Source # 
Instance details

Defined in Control.Effect.Fail

Methods

mask :: ((forall a. FailC m a -> FailC m a) -> FailC m b) -> FailC m b #

uninterruptibleMask :: ((forall a. FailC m a -> FailC m a) -> FailC m b) -> FailC m b #

generalBracket :: FailC m a -> (a -> ExitCase b -> FailC m c) -> (a -> FailC m b) -> FailC m (b, c) #

MonadMask m => MonadMask (AltMaybeC m) Source # 
Instance details

Defined in Control.Effect.Alt

Methods

mask :: ((forall a. AltMaybeC m a -> AltMaybeC m a) -> AltMaybeC m b) -> AltMaybeC m b #

uninterruptibleMask :: ((forall a. AltMaybeC m a -> AltMaybeC m a) -> AltMaybeC m b) -> AltMaybeC m b #

generalBracket :: AltMaybeC m a -> (a -> ExitCase b -> AltMaybeC m c) -> (a -> AltMaybeC m b) -> AltMaybeC m (b, c) #

MonadMask m => MonadMask (InterpretAltSimpleC m) Source # 
Instance details

Defined in Control.Effect.Alt

MonadMask m => MonadMask (ExceptT e m)

Since: exceptions-0.9.0

Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. ExceptT e m a -> ExceptT e m a) -> ExceptT e m b) -> ExceptT e m b #

uninterruptibleMask :: ((forall a. ExceptT e m a -> ExceptT e m a) -> ExceptT e m b) -> ExceptT e m b #

generalBracket :: ExceptT e m a -> (a -> ExitCase b -> ExceptT e m c) -> (a -> ExceptT e m b) -> ExceptT e m (b, c) #

(MonadMask m, Monoid w) => MonadMask (WriterT w m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. WriterT w m a -> WriterT w m a) -> WriterT w m b) -> WriterT w m b #

uninterruptibleMask :: ((forall a. WriterT w m a -> WriterT w m a) -> WriterT w m b) -> WriterT w m b #

generalBracket :: WriterT w m a -> (a -> ExitCase b -> WriterT w m c) -> (a -> WriterT w m b) -> WriterT w m (b, c) #

MonadMask m => MonadMask (StateT s m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. StateT s m a -> StateT s m a) -> StateT s m b) -> StateT s m b #

uninterruptibleMask :: ((forall a. StateT s m a -> StateT s m a) -> StateT s m b) -> StateT s m b #

generalBracket :: StateT s m a -> (a -> ExitCase b -> StateT s m c) -> (a -> StateT s m b) -> StateT s m (b, c) #

MonadMask m => MonadMask (ReaderT r m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. ReaderT r m a -> ReaderT r m a) -> ReaderT r m b) -> ReaderT r m b #

uninterruptibleMask :: ((forall a. ReaderT r m a -> ReaderT r m a) -> ReaderT r m b) -> ReaderT r m b #

generalBracket :: ReaderT r m a -> (a -> ExitCase b -> ReaderT r m c) -> (a -> ReaderT r m b) -> ReaderT r m (b, c) #

(Error e, MonadMask m) => MonadMask (ErrorT e m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. ErrorT e m a -> ErrorT e m a) -> ErrorT e m b) -> ErrorT e m b #

uninterruptibleMask :: ((forall a. ErrorT e m a -> ErrorT e m a) -> ErrorT e m b) -> ErrorT e m b #

generalBracket :: ErrorT e m a -> (a -> ExitCase b -> ErrorT e m c) -> (a -> ErrorT e m b) -> ErrorT e m (b, c) #

MonadMask m => MonadMask (IdentityT m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. IdentityT m a -> IdentityT m a) -> IdentityT m b) -> IdentityT m b #

uninterruptibleMask :: ((forall a. IdentityT m a -> IdentityT m a) -> IdentityT m b) -> IdentityT m b #

generalBracket :: IdentityT m a -> (a -> ExitCase b -> IdentityT m c) -> (a -> IdentityT m b) -> IdentityT m (b, c) #

MonadMask m => MonadMask (StateT s m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. StateT s m a -> StateT s m a) -> StateT s m b) -> StateT s m b #

uninterruptibleMask :: ((forall a. StateT s m a -> StateT s m a) -> StateT s m b) -> StateT s m b #

generalBracket :: StateT s m a -> (a -> ExitCase b -> StateT s m c) -> (a -> StateT s m b) -> StateT s m (b, c) #

(MonadMask m, Monoid w) => MonadMask (WriterT w m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. WriterT w m a -> WriterT w m a) -> WriterT w m b) -> WriterT w m b #

uninterruptibleMask :: ((forall a. WriterT w m a -> WriterT w m a) -> WriterT w m b) -> WriterT w m b #

generalBracket :: WriterT w m a -> (a -> ExitCase b -> WriterT w m c) -> (a -> WriterT w m b) -> WriterT w m (b, c) #

MonadMask (CompositionBaseT ts m) => MonadMask (CompositionC ts m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Compose

Methods

mask :: ((forall a. CompositionC ts m a -> CompositionC ts m a) -> CompositionC ts m b) -> CompositionC ts m b #

uninterruptibleMask :: ((forall a. CompositionC ts m a -> CompositionC ts m a) -> CompositionC ts m b) -> CompositionC ts m b #

generalBracket :: CompositionC ts m a -> (a -> ExitCase b -> CompositionC ts m c) -> (a -> CompositionC ts m b) -> CompositionC ts m (b, c) #

Effs '[Mask, Bracket, ErrorIO] m => MonadMask (Effly m) Source # 
Instance details

Defined in Control.Effect.Internal.Effly

Methods

mask :: ((forall a. Effly m a -> Effly m a) -> Effly m b) -> Effly m b #

uninterruptibleMask :: ((forall a. Effly m a -> Effly m a) -> Effly m b) -> Effly m b #

generalBracket :: Effly m a -> (a -> ExitCase b -> Effly m c) -> (a -> Effly m b) -> Effly m (b, c) #

MonadMask m => MonadMask (InterpretPrimSimpleC e m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

MonadMask m => MonadMask (InterpretSimpleC e m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

Methods

mask :: ((forall a. InterpretSimpleC e m a -> InterpretSimpleC e m a) -> InterpretSimpleC e m b) -> InterpretSimpleC e m b #

uninterruptibleMask :: ((forall a. InterpretSimpleC e m a -> InterpretSimpleC e m a) -> InterpretSimpleC e m b) -> InterpretSimpleC e m b #

generalBracket :: InterpretSimpleC e m a -> (a -> ExitCase b -> InterpretSimpleC e m c) -> (a -> InterpretSimpleC e m b) -> InterpretSimpleC e m (b, c) #

MonadMask m => MonadMask (EmbedC m) Source # 
Instance details

Defined in Control.Effect.Embed

Methods

mask :: ((forall a. EmbedC m a -> EmbedC m a) -> EmbedC m b) -> EmbedC m b #

uninterruptibleMask :: ((forall a. EmbedC m a -> EmbedC m a) -> EmbedC m b) -> EmbedC m b #

generalBracket :: EmbedC m a -> (a -> ExitCase b -> EmbedC m c) -> (a -> EmbedC m b) -> EmbedC m (b, c) #

MonadMask m => MonadMask (RunMC m) Source # 
Instance details

Defined in Control.Effect.Embed

Methods

mask :: ((forall a. RunMC m a -> RunMC m a) -> RunMC m b) -> RunMC m b #

uninterruptibleMask :: ((forall a. RunMC m a -> RunMC m a) -> RunMC m b) -> RunMC m b #

generalBracket :: RunMC m a -> (a -> ExitCase b -> RunMC m c) -> (a -> RunMC m b) -> RunMC m (b, c) #

(Monoid o, MonadMask m) => MonadMask (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. WriterLazyC o m a -> WriterLazyC o m a) -> WriterLazyC o m b) -> WriterLazyC o m b #

uninterruptibleMask :: ((forall a. WriterLazyC o m a -> WriterLazyC o m a) -> WriterLazyC o m b) -> WriterLazyC o m b #

generalBracket :: WriterLazyC o m a -> (a -> ExitCase b -> WriterLazyC o m c) -> (a -> WriterLazyC o m b) -> WriterLazyC o m (b, c) #

(Monoid o, MonadMask m) => MonadMask (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. ListenLazyC o m a -> ListenLazyC o m a) -> ListenLazyC o m b) -> ListenLazyC o m b #

uninterruptibleMask :: ((forall a. ListenLazyC o m a -> ListenLazyC o m a) -> ListenLazyC o m b) -> ListenLazyC o m b #

generalBracket :: ListenLazyC o m a -> (a -> ExitCase b -> ListenLazyC o m c) -> (a -> ListenLazyC o m b) -> ListenLazyC o m (b, c) #

(Monoid o, MonadMask m) => MonadMask (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. TellLazyC o m a -> TellLazyC o m a) -> TellLazyC o m b) -> TellLazyC o m b #

uninterruptibleMask :: ((forall a. TellLazyC o m a -> TellLazyC o m a) -> TellLazyC o m b) -> TellLazyC o m b #

generalBracket :: TellLazyC o m a -> (a -> ExitCase b -> TellLazyC o m c) -> (a -> TellLazyC o m b) -> TellLazyC o m (b, c) #

(Monoid o, MonadMask m) => MonadMask (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. WriterC o m a -> WriterC o m a) -> WriterC o m b) -> WriterC o m b #

uninterruptibleMask :: ((forall a. WriterC o m a -> WriterC o m a) -> WriterC o m b) -> WriterC o m b #

generalBracket :: WriterC o m a -> (a -> ExitCase b -> WriterC o m c) -> (a -> WriterC o m b) -> WriterC o m (b, c) #

(Monoid o, MonadMask m) => MonadMask (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. ListenC o m a -> ListenC o m a) -> ListenC o m b) -> ListenC o m b #

uninterruptibleMask :: ((forall a. ListenC o m a -> ListenC o m a) -> ListenC o m b) -> ListenC o m b #

generalBracket :: ListenC o m a -> (a -> ExitCase b -> ListenC o m c) -> (a -> ListenC o m b) -> ListenC o m (b, c) #

(Monoid o, MonadMask m) => MonadMask (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. TellC o m a -> TellC o m a) -> TellC o m b) -> TellC o m b #

uninterruptibleMask :: ((forall a. TellC o m a -> TellC o m a) -> TellC o m b) -> TellC o m b #

generalBracket :: TellC o m a -> (a -> ExitCase b -> TellC o m c) -> (a -> TellC o m b) -> TellC o m (b, c) #

MonadMask m => MonadMask (UnliftC m) Source # 
Instance details

Defined in Control.Effect.Internal.Unlift

Methods

mask :: ((forall a. UnliftC m a -> UnliftC m a) -> UnliftC m b) -> UnliftC m b #

uninterruptibleMask :: ((forall a. UnliftC m a -> UnliftC m a) -> UnliftC m b) -> UnliftC m b #

generalBracket :: UnliftC m a -> (a -> ExitCase b -> UnliftC m c) -> (a -> UnliftC m b) -> UnliftC m (b, c) #

MonadMask m => MonadMask (StateLazyC s m) Source # 
Instance details

Defined in Control.Effect.Internal.State

Methods

mask :: ((forall a. StateLazyC s m a -> StateLazyC s m a) -> StateLazyC s m b) -> StateLazyC s m b #

uninterruptibleMask :: ((forall a. StateLazyC s m a -> StateLazyC s m a) -> StateLazyC s m b) -> StateLazyC s m b #

generalBracket :: StateLazyC s m a -> (a -> ExitCase b -> StateLazyC s m c) -> (a -> StateLazyC s m b) -> StateLazyC s m (b, c) #

MonadMask m => MonadMask (StateC s m) Source # 
Instance details

Defined in Control.Effect.Internal.State

Methods

mask :: ((forall a. StateC s m a -> StateC s m a) -> StateC s m b) -> StateC s m b #

uninterruptibleMask :: ((forall a. StateC s m a -> StateC s m a) -> StateC s m b) -> StateC s m b #

generalBracket :: StateC s m a -> (a -> ExitCase b -> StateC s m c) -> (a -> StateC s m b) -> StateC s m (b, c) #

MonadMask m => MonadMask (HoistC m) Source # 
Instance details

Defined in Control.Effect.Internal.Regional

Methods

mask :: ((forall a. HoistC m a -> HoistC m a) -> HoistC m b) -> HoistC m b #

uninterruptibleMask :: ((forall a. HoistC m a -> HoistC m a) -> HoistC m b) -> HoistC m b #

generalBracket :: HoistC m a -> (a -> ExitCase b -> HoistC m c) -> (a -> HoistC m b) -> HoistC m (b, c) #

MonadMask m => MonadMask (ReaderC i m) Source # 
Instance details

Defined in Control.Effect.Internal.Reader

Methods

mask :: ((forall a. ReaderC i m a -> ReaderC i m a) -> ReaderC i m b) -> ReaderC i m b #

uninterruptibleMask :: ((forall a. ReaderC i m a -> ReaderC i m a) -> ReaderC i m b) -> ReaderC i m b #

generalBracket :: ReaderC i m a -> (a -> ExitCase b -> ReaderC i m c) -> (a -> ReaderC i m b) -> ReaderC i m (b, c) #

MonadMask m => MonadMask (HoistOptionC m) Source # 
Instance details

Defined in Control.Effect.Internal.Optional

Methods

mask :: ((forall a. HoistOptionC m a -> HoistOptionC m a) -> HoistOptionC m b) -> HoistOptionC m b #

uninterruptibleMask :: ((forall a. HoistOptionC m a -> HoistOptionC m a) -> HoistOptionC m b) -> HoistOptionC m b #

generalBracket :: HoistOptionC m a -> (a -> ExitCase b -> HoistOptionC m c) -> (a -> HoistOptionC m b) -> HoistOptionC m (b, c) #

MonadMask m => MonadMask (UnwrapTopC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Newtype

Methods

mask :: ((forall a. UnwrapTopC e m a -> UnwrapTopC e m a) -> UnwrapTopC e m b) -> UnwrapTopC e m b #

uninterruptibleMask :: ((forall a. UnwrapTopC e m a -> UnwrapTopC e m a) -> UnwrapTopC e m b) -> UnwrapTopC e m b #

generalBracket :: UnwrapTopC e m a -> (a -> ExitCase b -> UnwrapTopC e m c) -> (a -> UnwrapTopC e m b) -> UnwrapTopC e m (b, c) #

MonadMask m => MonadMask (UnwrapC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Newtype

Methods

mask :: ((forall a. UnwrapC e m a -> UnwrapC e m a) -> UnwrapC e m b) -> UnwrapC e m b #

uninterruptibleMask :: ((forall a. UnwrapC e m a -> UnwrapC e m a) -> UnwrapC e m b) -> UnwrapC e m b #

generalBracket :: UnwrapC e m a -> (a -> ExitCase b -> UnwrapC e m c) -> (a -> UnwrapC e m b) -> UnwrapC e m (b, c) #

MonadMask m => MonadMask (ErrorToIOSimpleC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. ErrorToIOSimpleC e m a -> ErrorToIOSimpleC e m a) -> ErrorToIOSimpleC e m b) -> ErrorToIOSimpleC e m b #

uninterruptibleMask :: ((forall a. ErrorToIOSimpleC e m a -> ErrorToIOSimpleC e m a) -> ErrorToIOSimpleC e m b) -> ErrorToIOSimpleC e m b #

generalBracket :: ErrorToIOSimpleC e m a -> (a -> ExitCase b -> ErrorToIOSimpleC e m c) -> (a -> ErrorToIOSimpleC e m b) -> ErrorToIOSimpleC e m (b, c) #

MonadMask m => MonadMask (InterpretErrorSimpleC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

MonadMask m => MonadMask (ErrorToIOAsExcC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. ErrorToIOAsExcC e m a -> ErrorToIOAsExcC e m a) -> ErrorToIOAsExcC e m b) -> ErrorToIOAsExcC e m b #

uninterruptibleMask :: ((forall a. ErrorToIOAsExcC e m a -> ErrorToIOAsExcC e m a) -> ErrorToIOAsExcC e m b) -> ErrorToIOAsExcC e m b #

generalBracket :: ErrorToIOAsExcC e m a -> (a -> ExitCase b -> ErrorToIOAsExcC e m c) -> (a -> ErrorToIOAsExcC e m b) -> ErrorToIOAsExcC e m (b, c) #

MonadMask m => MonadMask (ErrorToErrorIOAsExcC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

MonadMask m => MonadMask (ErrorC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. ErrorC e m a -> ErrorC e m a) -> ErrorC e m b) -> ErrorC e m b #

uninterruptibleMask :: ((forall a. ErrorC e m a -> ErrorC e m a) -> ErrorC e m b) -> ErrorC e m b #

generalBracket :: ErrorC e m a -> (a -> ExitCase b -> ErrorC e m c) -> (a -> ErrorC e m b) -> ErrorC e m (b, c) #

MonadMask m => MonadMask (ThrowC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. ThrowC e m a -> ThrowC e m a) -> ThrowC e m b) -> ThrowC e m b #

uninterruptibleMask :: ((forall a. ThrowC e m a -> ThrowC e m a) -> ThrowC e m b) -> ThrowC e m b #

generalBracket :: ThrowC e m a -> (a -> ExitCase b -> ThrowC e m c) -> (a -> ThrowC e m b) -> ThrowC e m (b, c) #

MonadMask m => MonadMask (SafeErrorToErrorIOSimpleC exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

MonadMask m => MonadMask (SafeErrorToIOSimpleC exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

Methods

mask :: ((forall a. SafeErrorToIOSimpleC exc m a -> SafeErrorToIOSimpleC exc m a) -> SafeErrorToIOSimpleC exc m b) -> SafeErrorToIOSimpleC exc m b #

uninterruptibleMask :: ((forall a. SafeErrorToIOSimpleC exc m a -> SafeErrorToIOSimpleC exc m a) -> SafeErrorToIOSimpleC exc m b) -> SafeErrorToIOSimpleC exc m b #

generalBracket :: SafeErrorToIOSimpleC exc m a -> (a -> ExitCase b -> SafeErrorToIOSimpleC exc m c) -> (a -> SafeErrorToIOSimpleC exc m b) -> SafeErrorToIOSimpleC exc m (b, c) #

MonadMask m => MonadMask (SafeErrorC exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

Methods

mask :: ((forall a. SafeErrorC exc m a -> SafeErrorC exc m a) -> SafeErrorC exc m b) -> SafeErrorC exc m b #

uninterruptibleMask :: ((forall a. SafeErrorC exc m a -> SafeErrorC exc m a) -> SafeErrorC exc m b) -> SafeErrorC exc m b #

generalBracket :: SafeErrorC exc m a -> (a -> ExitCase b -> SafeErrorC exc m c) -> (a -> SafeErrorC exc m b) -> SafeErrorC exc m (b, c) #

MonadMask m => MonadMask (BaseControlC m) Source # 
Instance details

Defined in Control.Effect.Internal.BaseControl

Methods

mask :: ((forall a. BaseControlC m a -> BaseControlC m a) -> BaseControlC m b) -> BaseControlC m b #

uninterruptibleMask :: ((forall a. BaseControlC m a -> BaseControlC m a) -> BaseControlC m b) -> BaseControlC m b #

generalBracket :: BaseControlC m a -> (a -> ExitCase b -> BaseControlC m c) -> (a -> BaseControlC m b) -> BaseControlC m (b, c) #

MonadMask m => MonadMask (FreshEnumC uniq m) Source # 
Instance details

Defined in Control.Effect.Fresh

Methods

mask :: ((forall a. FreshEnumC uniq m a -> FreshEnumC uniq m a) -> FreshEnumC uniq m b) -> FreshEnumC uniq m b #

uninterruptibleMask :: ((forall a. FreshEnumC uniq m a -> FreshEnumC uniq m a) -> FreshEnumC uniq m b) -> FreshEnumC uniq m b #

generalBracket :: FreshEnumC uniq m a -> (a -> ExitCase b -> FreshEnumC uniq m c) -> (a -> FreshEnumC uniq m b) -> FreshEnumC uniq m (b, c) #

MonadMask m => MonadMask (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. WriterTVarC o m a -> WriterTVarC o m a) -> WriterTVarC o m b) -> WriterTVarC o m b #

uninterruptibleMask :: ((forall a. WriterTVarC o m a -> WriterTVarC o m a) -> WriterTVarC o m b) -> WriterTVarC o m b #

generalBracket :: WriterTVarC o m a -> (a -> ExitCase b -> WriterTVarC o m c) -> (a -> WriterTVarC o m b) -> WriterTVarC o m (b, c) #

MonadMask m => MonadMask (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. ListenTVarC o m a -> ListenTVarC o m a) -> ListenTVarC o m b) -> ListenTVarC o m b #

uninterruptibleMask :: ((forall a. ListenTVarC o m a -> ListenTVarC o m a) -> ListenTVarC o m b) -> ListenTVarC o m b #

generalBracket :: ListenTVarC o m a -> (a -> ExitCase b -> ListenTVarC o m c) -> (a -> ListenTVarC o m b) -> ListenTVarC o m (b, c) #

MonadMask m => MonadMask (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. WriterToBracketC o m a -> WriterToBracketC o m a) -> WriterToBracketC o m b) -> WriterToBracketC o m b #

uninterruptibleMask :: ((forall a. WriterToBracketC o m a -> WriterToBracketC o m a) -> WriterToBracketC o m b) -> WriterToBracketC o m b #

generalBracket :: WriterToBracketC o m a -> (a -> ExitCase b -> WriterToBracketC o m c) -> (a -> WriterToBracketC o m b) -> WriterToBracketC o m (b, c) #

MonadMask m => MonadMask (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadMask m => MonadMask (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadMask m => MonadMask (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. TellListLazyC o m a -> TellListLazyC o m a) -> TellListLazyC o m b) -> TellListLazyC o m b #

uninterruptibleMask :: ((forall a. TellListLazyC o m a -> TellListLazyC o m a) -> TellListLazyC o m b) -> TellListLazyC o m b #

generalBracket :: TellListLazyC o m a -> (a -> ExitCase b -> TellListLazyC o m c) -> (a -> TellListLazyC o m b) -> TellListLazyC o m (b, c) #

MonadMask m => MonadMask (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. TellListC o m a -> TellListC o m a) -> TellListC o m b) -> TellListC o m b #

uninterruptibleMask :: ((forall a. TellListC o m a -> TellListC o m a) -> TellListC o m b) -> TellListC o m b #

generalBracket :: TellListC o m a -> (a -> ExitCase b -> TellListC o m c) -> (a -> TellListC o m b) -> TellListC o m (b, c) #

MonadMask m => MonadMask (InterceptRC e m) Source # 
Instance details

Defined in Control.Effect.Internal.Intercept

Methods

mask :: ((forall a. InterceptRC e m a -> InterceptRC e m a) -> InterceptRC e m b) -> InterceptRC e m b #

uninterruptibleMask :: ((forall a. InterceptRC e m a -> InterceptRC e m a) -> InterceptRC e m b) -> InterceptRC e m b #

generalBracket :: InterceptRC e m a -> (a -> ExitCase b -> InterceptRC e m c) -> (a -> InterceptRC e m b) -> InterceptRC e m (b, c) #

MonadMask m => MonadMask (InterpretFailC h m) Source # 
Instance details

Defined in Control.Effect.Fail

Methods

mask :: ((forall a. InterpretFailC h m a -> InterpretFailC h m a) -> InterpretFailC h m b) -> InterpretFailC h m b #

uninterruptibleMask :: ((forall a. InterpretFailC h m a -> InterpretFailC h m a) -> InterpretFailC h m b) -> InterpretFailC h m b #

generalBracket :: InterpretFailC h m a -> (a -> ExitCase b -> InterpretFailC h m c) -> (a -> InterpretFailC h m b) -> InterpretFailC h m (b, c) #

MonadMask m => MonadMask (InterpretAltC h m) Source # 
Instance details

Defined in Control.Effect.Alt

Methods

mask :: ((forall a. InterpretAltC h m a -> InterpretAltC h m a) -> InterpretAltC h m b) -> InterpretAltC h m b #

uninterruptibleMask :: ((forall a. InterpretAltC h m a -> InterpretAltC h m a) -> InterpretAltC h m b) -> InterpretAltC h m b #

generalBracket :: InterpretAltC h m a -> (a -> ExitCase b -> InterpretAltC h m c) -> (a -> InterpretAltC h m b) -> InterpretAltC h m (b, c) #

MonadMask m => MonadMask (SubsumeC e m) Source # 
Instance details

Defined in Control.Effect.Internal

Methods

mask :: ((forall a. SubsumeC e m a -> SubsumeC e m a) -> SubsumeC e m b) -> SubsumeC e m b #

uninterruptibleMask :: ((forall a. SubsumeC e m a -> SubsumeC e m a) -> SubsumeC e m b) -> SubsumeC e m b #

generalBracket :: SubsumeC e m a -> (a -> ExitCase b -> SubsumeC e m c) -> (a -> SubsumeC e m b) -> SubsumeC e m (b, c) #

MonadMask m => MonadMask (IntroC top new m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Intro

Methods

mask :: ((forall a. IntroC top new m a -> IntroC top new m a) -> IntroC top new m b) -> IntroC top new m b #

uninterruptibleMask :: ((forall a. IntroC top new m a -> IntroC top new m a) -> IntroC top new m b) -> IntroC top new m b #

generalBracket :: IntroC top new m a -> (a -> ExitCase b -> IntroC top new m c) -> (a -> IntroC top new m b) -> IntroC top new m (b, c) #

MonadMask m => MonadMask (ReinterpretSimpleC e new m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

Methods

mask :: ((forall a. ReinterpretSimpleC e new m a -> ReinterpretSimpleC e new m a) -> ReinterpretSimpleC e new m b) -> ReinterpretSimpleC e new m b #

uninterruptibleMask :: ((forall a. ReinterpretSimpleC e new m a -> ReinterpretSimpleC e new m a) -> ReinterpretSimpleC e new m b) -> ReinterpretSimpleC e new m b #

generalBracket :: ReinterpretSimpleC e new m a -> (a -> ExitCase b -> ReinterpretSimpleC e new m c) -> (a -> ReinterpretSimpleC e new m b) -> ReinterpretSimpleC e new m (b, c) #

MonadMask m => MonadMask (InterpretC h e m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

Methods

mask :: ((forall a. InterpretC h e m a -> InterpretC h e m a) -> InterpretC h e m b) -> InterpretC h e m b #

uninterruptibleMask :: ((forall a. InterpretC h e m a -> InterpretC h e m a) -> InterpretC h e m b) -> InterpretC h e m b #

generalBracket :: InterpretC h e m a -> (a -> ExitCase b -> InterpretC h e m c) -> (a -> InterpretC h e m b) -> InterpretC h e m (b, c) #

MonadMask m => MonadMask (InterpretPrimC s e m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

Methods

mask :: ((forall a. InterpretPrimC s e m a -> InterpretPrimC s e m a) -> InterpretPrimC s e m b) -> InterpretPrimC s e m b #

uninterruptibleMask :: ((forall a. InterpretPrimC s e m a -> InterpretPrimC s e m a) -> InterpretPrimC s e m b) -> InterpretPrimC s e m b #

generalBracket :: InterpretPrimC s e m a -> (a -> ExitCase b -> InterpretPrimC s e m c) -> (a -> InterpretPrimC s e m b) -> InterpretPrimC s e m (b, c) #

MonadMask m => MonadMask (UnionC l m) Source # 
Instance details

Defined in Control.Effect.Union

Methods

mask :: ((forall a. UnionC l m a -> UnionC l m a) -> UnionC l m b) -> UnionC l m b #

uninterruptibleMask :: ((forall a. UnionC l m a -> UnionC l m a) -> UnionC l m b) -> UnionC l m b #

generalBracket :: UnionC l m a -> (a -> ExitCase b -> UnionC l m c) -> (a -> UnionC l m b) -> UnionC l m (b, c) #

MonadMask m => MonadMask (WrapC e e' m) Source # 
Instance details

Defined in Control.Effect.Internal.Newtype

Methods

mask :: ((forall a. WrapC e e' m a -> WrapC e e' m a) -> WrapC e e' m b) -> WrapC e e' m b #

uninterruptibleMask :: ((forall a. WrapC e e' m a -> WrapC e e' m a) -> WrapC e e' m b) -> WrapC e e' m b #

generalBracket :: WrapC e e' m a -> (a -> ExitCase b -> WrapC e e' m c) -> (a -> WrapC e e' m b) -> WrapC e e' m (b, c) #

(MonadMask m, Monoid w) => MonadMask (RWST r w s m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. RWST r w s m a -> RWST r w s m a) -> RWST r w s m b) -> RWST r w s m b #

uninterruptibleMask :: ((forall a. RWST r w s m a -> RWST r w s m a) -> RWST r w s m b) -> RWST r w s m b #

generalBracket :: RWST r w s m a -> (a -> ExitCase b -> RWST r w s m c) -> (a -> RWST r w s m b) -> RWST r w s m (b, c) #

(MonadMask m, Monoid w) => MonadMask (RWST r w s m) 
Instance details

Defined in Control.Monad.Catch

Methods

mask :: ((forall a. RWST r w s m a -> RWST r w s m a) -> RWST r w s m b) -> RWST r w s m b #

uninterruptibleMask :: ((forall a. RWST r w s m a -> RWST r w s m a) -> RWST r w s m b) -> RWST r w s m b #

generalBracket :: RWST r w s m a -> (a -> ExitCase b -> RWST r w s m c) -> (a -> RWST r w s m b) -> RWST r w s m (b, c) #

MonadMask (t (u m)) => MonadMask (ComposeT t u m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Compose

Methods

mask :: ((forall a. ComposeT t u m a -> ComposeT t u m a) -> ComposeT t u m b) -> ComposeT t u m b #

uninterruptibleMask :: ((forall a. ComposeT t u m a -> ComposeT t u m a) -> ComposeT t u m b) -> ComposeT t u m b #

generalBracket :: ComposeT t u m a -> (a -> ExitCase b -> ComposeT t u m c) -> (a -> ComposeT t u m b) -> ComposeT t u m (b, c) #

(Reifies s (ReifiedEffAlgebra Bracket m), Monad m) => MonadMask (ViaAlg s Bracket m) Source # 
Instance details

Defined in Control.Effect.Type.Bracket

Methods

mask :: ((forall a. ViaAlg s Bracket m a -> ViaAlg s Bracket m a) -> ViaAlg s Bracket m b) -> ViaAlg s Bracket m b #

uninterruptibleMask :: ((forall a. ViaAlg s Bracket m a -> ViaAlg s Bracket m a) -> ViaAlg s Bracket m b) -> ViaAlg s Bracket m b #

generalBracket :: ViaAlg s Bracket m a -> (a -> ExitCase b -> ViaAlg s Bracket m c) -> (a -> ViaAlg s Bracket m b) -> ViaAlg s Bracket m (b, c) #

(Reifies s (ReifiedEffAlgebra Mask m), Monad m) => MonadMask (ViaAlg s Mask m) Source # 
Instance details

Defined in Control.Effect.Type.Mask

Methods

mask :: ((forall a. ViaAlg s Mask m a -> ViaAlg s Mask m a) -> ViaAlg s Mask m b) -> ViaAlg s Mask m b #

uninterruptibleMask :: ((forall a. ViaAlg s Mask m a -> ViaAlg s Mask m a) -> ViaAlg s Mask m b) -> ViaAlg s Mask m b #

generalBracket :: ViaAlg s Mask m a -> (a -> ExitCase b -> ViaAlg s Mask m c) -> (a -> ViaAlg s Mask m b) -> ViaAlg s Mask m (b, c) #

MonadMask m => MonadMask (ReinterpretC h e new m) Source # 
Instance details

Defined in Control.Effect.Carrier.Internal.Interpret

Methods

mask :: ((forall a. ReinterpretC h e new m a -> ReinterpretC h e new m a) -> ReinterpretC h e new m b) -> ReinterpretC h e new m b #

uninterruptibleMask :: ((forall a. ReinterpretC h e new m a -> ReinterpretC h e new m a) -> ReinterpretC h e new m b) -> ReinterpretC h e new m b #

generalBracket :: ReinterpretC h e new m a -> (a -> ExitCase b -> ReinterpretC h e new m c) -> (a -> ReinterpretC h e new m b) -> ReinterpretC h e new m (b, c) #

MonadMask m => MonadMask (UnionizeC b m) Source # 
Instance details

Defined in Control.Effect.Union

Methods

mask :: ((forall a. UnionizeC b m a -> UnionizeC b m a) -> UnionizeC b m b0) -> UnionizeC b m b0 #

uninterruptibleMask :: ((forall a. UnionizeC b m a -> UnionizeC b m a) -> UnionizeC b m b0) -> UnionizeC b m b0 #

generalBracket :: UnionizeC b m a -> (a -> ExitCase b0 -> UnionizeC b m c) -> (a -> UnionizeC b m b0) -> UnionizeC b m (b0, c) #

MonadMask m => MonadMask (UnionizeHeadC b m) Source # 
Instance details

Defined in Control.Effect.Union

Methods

mask :: ((forall a. UnionizeHeadC b m a -> UnionizeHeadC b m a) -> UnionizeHeadC b m b0) -> UnionizeHeadC b m b0 #

uninterruptibleMask :: ((forall a. UnionizeHeadC b m a -> UnionizeHeadC b m a) -> UnionizeHeadC b m b0) -> UnionizeHeadC b m b0 #

generalBracket :: UnionizeHeadC b m a -> (a -> ExitCase b0 -> UnionizeHeadC b m c) -> (a -> UnionizeHeadC b m b0) -> UnionizeHeadC b m (b0, c) #

MonadMask m => MonadMask (ErrorToIOC' s s' e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. ErrorToIOC' s s' e m a -> ErrorToIOC' s s' e m a) -> ErrorToIOC' s s' e m b) -> ErrorToIOC' s s' e m b #

uninterruptibleMask :: ((forall a. ErrorToIOC' s s' e m a -> ErrorToIOC' s s' e m a) -> ErrorToIOC' s s' e m b) -> ErrorToIOC' s s' e m b #

generalBracket :: ErrorToIOC' s s' e m a -> (a -> ExitCase b -> ErrorToIOC' s s' e m c) -> (a -> ErrorToIOC' s s' e m b) -> ErrorToIOC' s s' e m (b, c) #

MonadMask m => MonadMask (InterpretErrorC' s s' e m) Source # 
Instance details

Defined in Control.Effect.Internal.Error

Methods

mask :: ((forall a. InterpretErrorC' s s' e m a -> InterpretErrorC' s s' e m a) -> InterpretErrorC' s s' e m b) -> InterpretErrorC' s s' e m b #

uninterruptibleMask :: ((forall a. InterpretErrorC' s s' e m a -> InterpretErrorC' s s' e m a) -> InterpretErrorC' s s' e m b) -> InterpretErrorC' s s' e m b #

generalBracket :: InterpretErrorC' s s' e m a -> (a -> ExitCase b -> InterpretErrorC' s s' e m c) -> (a -> InterpretErrorC' s s' e m b) -> InterpretErrorC' s s' e m (b, c) #

MonadMask m => MonadMask (SafeErrorToErrorIOC' s s' exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

Methods

mask :: ((forall a. SafeErrorToErrorIOC' s s' exc m a -> SafeErrorToErrorIOC' s s' exc m a) -> SafeErrorToErrorIOC' s s' exc m b) -> SafeErrorToErrorIOC' s s' exc m b #

uninterruptibleMask :: ((forall a. SafeErrorToErrorIOC' s s' exc m a -> SafeErrorToErrorIOC' s s' exc m a) -> SafeErrorToErrorIOC' s s' exc m b) -> SafeErrorToErrorIOC' s s' exc m b #

generalBracket :: SafeErrorToErrorIOC' s s' exc m a -> (a -> ExitCase b -> SafeErrorToErrorIOC' s s' exc m c) -> (a -> SafeErrorToErrorIOC' s s' exc m b) -> SafeErrorToErrorIOC' s s' exc m (b, c) #

MonadMask m => MonadMask (SafeErrorToIOC' s s' exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

Methods

mask :: ((forall a. SafeErrorToIOC' s s' exc m a -> SafeErrorToIOC' s s' exc m a) -> SafeErrorToIOC' s s' exc m b) -> SafeErrorToIOC' s s' exc m b #

uninterruptibleMask :: ((forall a. SafeErrorToIOC' s s' exc m a -> SafeErrorToIOC' s s' exc m a) -> SafeErrorToIOC' s s' exc m b) -> SafeErrorToIOC' s s' exc m b #

generalBracket :: SafeErrorToIOC' s s' exc m a -> (a -> ExitCase b -> SafeErrorToIOC' s s' exc m c) -> (a -> SafeErrorToIOC' s s' exc m b) -> SafeErrorToIOC' s s' exc m (b, c) #

MonadMask m => MonadMask (ExceptionallyC eff exc m) Source # 
Instance details

Defined in Control.Effect.Internal.Exceptional

Methods

mask :: ((forall a. ExceptionallyC eff exc m a -> ExceptionallyC eff exc m a) -> ExceptionallyC eff exc m b) -> ExceptionallyC eff exc m b #

uninterruptibleMask :: ((forall a. ExceptionallyC eff exc m a -> ExceptionallyC eff exc m a) -> ExceptionallyC eff exc m b) -> ExceptionallyC eff exc m b #

generalBracket :: ExceptionallyC eff exc m a -> (a -> ExitCase b -> ExceptionallyC eff exc m c) -> (a -> ExceptionallyC eff exc m b) -> ExceptionallyC eff exc m (b, c) #

MonadMask m => MonadMask (GainBaseControlC b z m) Source # 
Instance details

Defined in Control.Effect.BaseControl

Methods

mask :: ((forall a. GainBaseControlC b z m a -> GainBaseControlC b z m a) -> GainBaseControlC b z m b0) -> GainBaseControlC b z m b0 #

uninterruptibleMask :: ((forall a. GainBaseControlC b z m a -> GainBaseControlC b z m a) -> GainBaseControlC b z m b0) -> GainBaseControlC b z m b0 #

generalBracket :: GainBaseControlC b z m a -> (a -> ExitCase b0 -> GainBaseControlC b z m c) -> (a -> GainBaseControlC b z m b0) -> GainBaseControlC b z m (b0, c) #

Carriers

data TellC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> TellC o m α #

(MonadBaseControl b m, Monoid o) => MonadBaseControl b (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (TellC o m) a #

Methods

liftBaseWith :: (RunInBase (TellC o m) b -> b a) -> TellC o m a #

restoreM :: StM (TellC o m) a -> TellC o m a #

MonadTrans (TellC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> TellC o m a #

Monoid o => MonadTransControl (TellC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (TellC o) a #

Methods

liftWith :: Monad m => (Run (TellC o) -> m a) -> TellC o m a #

restoreT :: Monad m => m (StT (TellC o) a) -> TellC o m a #

Monad m => Monad (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: TellC o m a -> (a -> TellC o m b) -> TellC o m b #

(>>) :: TellC o m a -> TellC o m b -> TellC o m b #

return :: a -> TellC o m a #

Functor m => Functor (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> TellC o m a -> TellC o m b #

(<$) :: a -> TellC o m b -> TellC o m a #

MonadFix m => MonadFix (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> TellC o m a) -> TellC o m a #

MonadFail m => MonadFail (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> TellC o m a #

Monad m => Applicative (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> TellC o m a #

(<*>) :: TellC o m (a -> b) -> TellC o m a -> TellC o m b #

liftA2 :: (a -> b -> c) -> TellC o m a -> TellC o m b -> TellC o m c #

(*>) :: TellC o m a -> TellC o m b -> TellC o m b #

(<*) :: TellC o m a -> TellC o m b -> TellC o m a #

MonadIO m => MonadIO (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> TellC o m a #

MonadPlus m => Alternative (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: TellC o m a #

(<|>) :: TellC o m a -> TellC o m a -> TellC o m a #

some :: TellC o m a -> TellC o m [a] #

many :: TellC o m a -> TellC o m [a] #

MonadPlus m => MonadPlus (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: TellC o m a #

mplus :: TellC o m a -> TellC o m a -> TellC o m a #

MonadThrow m => MonadThrow (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> TellC o m a #

(Monoid o, MonadCatch m) => MonadCatch (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => TellC o m a -> (e -> TellC o m a) -> TellC o m a #

(Monoid o, MonadMask m) => MonadMask (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. TellC o m a -> TellC o m a) -> TellC o m b) -> TellC o m b #

uninterruptibleMask :: ((forall a. TellC o m a -> TellC o m a) -> TellC o m b) -> TellC o m b #

generalBracket :: TellC o m a -> (a -> ExitCase b -> TellC o m c) -> (a -> TellC o m b) -> TellC o m (b, c) #

(Carrier m, Monoid o, Threads (WriterT o) (Prims m)) => Carrier (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (TellC o m) :: [Effect] Source #

type Prims (TellC o m) :: [Effect] Source #

Methods

algPrims :: Algebra' (Prims (TellC o m)) (TellC o m) a Source #

reformulate :: Monad z => Reformulation' (Derivs (TellC o m)) (Prims (TellC o m)) (TellC o m) z a Source #

algDerivs :: Algebra' (Derivs (TellC o m)) (TellC o m) a Source #

type StT (TellC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (TellC o) a = (a, o)
type Derivs (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (TellC o m) = Tell o ': Derivs m
type Prims (TellC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (TellC o m) = Prims m
type StM (TellC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (TellC o m) a = StM m (a, o)

data TellLazyC o m a Source #

Instances

Instances details
(Monoid o, MonadBase b m) => MonadBase b (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> TellLazyC o m α #

(Monoid o, MonadBaseControl b m) => MonadBaseControl b (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (TellLazyC o m) a #

Methods

liftBaseWith :: (RunInBase (TellLazyC o m) b -> b a) -> TellLazyC o m a #

restoreM :: StM (TellLazyC o m) a -> TellLazyC o m a #

Monoid o => MonadTrans (TellLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> TellLazyC o m a #

Monoid o => MonadTransControl (TellLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (TellLazyC o) a #

Methods

liftWith :: Monad m => (Run (TellLazyC o) -> m a) -> TellLazyC o m a #

restoreT :: Monad m => m (StT (TellLazyC o) a) -> TellLazyC o m a #

(Monoid o, Monad m) => Monad (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: TellLazyC o m a -> (a -> TellLazyC o m b) -> TellLazyC o m b #

(>>) :: TellLazyC o m a -> TellLazyC o m b -> TellLazyC o m b #

return :: a -> TellLazyC o m a #

Functor m => Functor (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> TellLazyC o m a -> TellLazyC o m b #

(<$) :: a -> TellLazyC o m b -> TellLazyC o m a #

(Monoid o, MonadFix m) => MonadFix (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> TellLazyC o m a) -> TellLazyC o m a #

(Monoid o, MonadFail m) => MonadFail (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> TellLazyC o m a #

(Monoid o, Applicative m) => Applicative (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> TellLazyC o m a #

(<*>) :: TellLazyC o m (a -> b) -> TellLazyC o m a -> TellLazyC o m b #

liftA2 :: (a -> b -> c) -> TellLazyC o m a -> TellLazyC o m b -> TellLazyC o m c #

(*>) :: TellLazyC o m a -> TellLazyC o m b -> TellLazyC o m b #

(<*) :: TellLazyC o m a -> TellLazyC o m b -> TellLazyC o m a #

(Monoid o, MonadIO m) => MonadIO (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> TellLazyC o m a #

(Monoid o, Alternative m) => Alternative (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: TellLazyC o m a #

(<|>) :: TellLazyC o m a -> TellLazyC o m a -> TellLazyC o m a #

some :: TellLazyC o m a -> TellLazyC o m [a] #

many :: TellLazyC o m a -> TellLazyC o m [a] #

(Monoid o, MonadPlus m) => MonadPlus (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: TellLazyC o m a #

mplus :: TellLazyC o m a -> TellLazyC o m a -> TellLazyC o m a #

(Monoid o, MonadThrow m) => MonadThrow (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> TellLazyC o m a #

(Monoid o, MonadCatch m) => MonadCatch (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => TellLazyC o m a -> (e -> TellLazyC o m a) -> TellLazyC o m a #

(Monoid o, MonadMask m) => MonadMask (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. TellLazyC o m a -> TellLazyC o m a) -> TellLazyC o m b) -> TellLazyC o m b #

uninterruptibleMask :: ((forall a. TellLazyC o m a -> TellLazyC o m a) -> TellLazyC o m b) -> TellLazyC o m b #

generalBracket :: TellLazyC o m a -> (a -> ExitCase b -> TellLazyC o m c) -> (a -> TellLazyC o m b) -> TellLazyC o m (b, c) #

(Monoid o, Carrier m, Threads (WriterT o) (Prims m)) => Carrier (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (TellLazyC o m) :: [Effect] Source #

type Prims (TellLazyC o m) :: [Effect] Source #

type StT (TellLazyC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (TellLazyC o) a = StT (WriterT o) a
type Derivs (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (TellLazyC o m) = Tell o ': Derivs m
type Prims (TellLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (TellLazyC o m) = Prims m
type StM (TellLazyC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (TellLazyC o m) a = StM (WriterT o m) a

data TellListC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> TellListC o m α #

MonadBaseControl b m => MonadBaseControl b (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (TellListC o m) a #

Methods

liftBaseWith :: (RunInBase (TellListC o m) b -> b a) -> TellListC o m a #

restoreM :: StM (TellListC o m) a -> TellListC o m a #

MonadTrans (TellListC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> TellListC o m a #

MonadTransControl (TellListC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (TellListC o) a #

Methods

liftWith :: Monad m => (Run (TellListC o) -> m a) -> TellListC o m a #

restoreT :: Monad m => m (StT (TellListC o) a) -> TellListC o m a #

Monad m => Monad (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

(>>=) :: TellListC o m a -> (a -> TellListC o m b) -> TellListC o m b #

(>>) :: TellListC o m a -> TellListC o m b -> TellListC o m b #

return :: a -> TellListC o m a #

Functor m => Functor (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> TellListC o m a -> TellListC o m b #

(<$) :: a -> TellListC o m b -> TellListC o m a #

MonadFix m => MonadFix (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> TellListC o m a) -> TellListC o m a #

MonadFail m => MonadFail (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> TellListC o m a #

Monad m => Applicative (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

pure :: a -> TellListC o m a #

(<*>) :: TellListC o m (a -> b) -> TellListC o m a -> TellListC o m b #

liftA2 :: (a -> b -> c) -> TellListC o m a -> TellListC o m b -> TellListC o m c #

(*>) :: TellListC o m a -> TellListC o m b -> TellListC o m b #

(<*) :: TellListC o m a -> TellListC o m b -> TellListC o m a #

MonadIO m => MonadIO (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> TellListC o m a #

MonadPlus m => Alternative (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

empty :: TellListC o m a #

(<|>) :: TellListC o m a -> TellListC o m a -> TellListC o m a #

some :: TellListC o m a -> TellListC o m [a] #

many :: TellListC o m a -> TellListC o m [a] #

MonadPlus m => MonadPlus (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mzero :: TellListC o m a #

mplus :: TellListC o m a -> TellListC o m a -> TellListC o m a #

MonadThrow m => MonadThrow (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> TellListC o m a #

MonadCatch m => MonadCatch (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

catch :: Exception e => TellListC o m a -> (e -> TellListC o m a) -> TellListC o m a #

MonadMask m => MonadMask (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. TellListC o m a -> TellListC o m a) -> TellListC o m b) -> TellListC o m b #

uninterruptibleMask :: ((forall a. TellListC o m a -> TellListC o m a) -> TellListC o m b) -> TellListC o m b #

generalBracket :: TellListC o m a -> (a -> ExitCase b -> TellListC o m c) -> (a -> TellListC o m b) -> TellListC o m (b, c) #

(Carrier m, Threads (WriterT (Dual [o])) (Prims m)) => Carrier (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (TellListC o m) :: [Effect] Source #

type Prims (TellListC o m) :: [Effect] Source #

type StT (TellListC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type StT (TellListC o) a
type Derivs (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (TellListC o m)
type Prims (TellListC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (TellListC o m)
type StM (TellListC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

type StM (TellListC o m) a

data TellListLazyC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> TellListLazyC o m α #

MonadBaseControl b m => MonadBaseControl b (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (TellListLazyC o m) a #

Methods

liftBaseWith :: (RunInBase (TellListLazyC o m) b -> b a) -> TellListLazyC o m a #

restoreM :: StM (TellListLazyC o m) a -> TellListLazyC o m a #

MonadTrans (TellListLazyC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> TellListLazyC o m a #

MonadTransControl (TellListLazyC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (TellListLazyC o) a #

Methods

liftWith :: Monad m => (Run (TellListLazyC o) -> m a) -> TellListLazyC o m a #

restoreT :: Monad m => m (StT (TellListLazyC o) a) -> TellListLazyC o m a #

Monad m => Monad (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

(>>=) :: TellListLazyC o m a -> (a -> TellListLazyC o m b) -> TellListLazyC o m b #

(>>) :: TellListLazyC o m a -> TellListLazyC o m b -> TellListLazyC o m b #

return :: a -> TellListLazyC o m a #

Functor m => Functor (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> TellListLazyC o m a -> TellListLazyC o m b #

(<$) :: a -> TellListLazyC o m b -> TellListLazyC o m a #

MonadFix m => MonadFix (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> TellListLazyC o m a) -> TellListLazyC o m a #

MonadFail m => MonadFail (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> TellListLazyC o m a #

Applicative m => Applicative (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

pure :: a -> TellListLazyC o m a #

(<*>) :: TellListLazyC o m (a -> b) -> TellListLazyC o m a -> TellListLazyC o m b #

liftA2 :: (a -> b -> c) -> TellListLazyC o m a -> TellListLazyC o m b -> TellListLazyC o m c #

(*>) :: TellListLazyC o m a -> TellListLazyC o m b -> TellListLazyC o m b #

(<*) :: TellListLazyC o m a -> TellListLazyC o m b -> TellListLazyC o m a #

MonadIO m => MonadIO (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> TellListLazyC o m a #

Alternative m => Alternative (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

empty :: TellListLazyC o m a #

(<|>) :: TellListLazyC o m a -> TellListLazyC o m a -> TellListLazyC o m a #

some :: TellListLazyC o m a -> TellListLazyC o m [a] #

many :: TellListLazyC o m a -> TellListLazyC o m [a] #

MonadPlus m => MonadPlus (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mzero :: TellListLazyC o m a #

mplus :: TellListLazyC o m a -> TellListLazyC o m a -> TellListLazyC o m a #

MonadThrow m => MonadThrow (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> TellListLazyC o m a #

MonadCatch m => MonadCatch (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

catch :: Exception e => TellListLazyC o m a -> (e -> TellListLazyC o m a) -> TellListLazyC o m a #

MonadMask m => MonadMask (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. TellListLazyC o m a -> TellListLazyC o m a) -> TellListLazyC o m b) -> TellListLazyC o m b #

uninterruptibleMask :: ((forall a. TellListLazyC o m a -> TellListLazyC o m a) -> TellListLazyC o m b) -> TellListLazyC o m b #

generalBracket :: TellListLazyC o m a -> (a -> ExitCase b -> TellListLazyC o m c) -> (a -> TellListLazyC o m b) -> TellListLazyC o m (b, c) #

(Carrier m, Threads (WriterT (Endo [o])) (Prims m)) => Carrier (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (TellListLazyC o m) :: [Effect] Source #

type Prims (TellListLazyC o m) :: [Effect] Source #

type StT (TellListLazyC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type StT (TellListLazyC o) a
type Derivs (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (TellListLazyC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (TellListLazyC o m)
type StM (TellListLazyC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

type StM (TellListLazyC o m) a

type TellIntoEndoTellC o = ReinterpretC WriterToEndoWriterH (Tell o) '[Tell (Endo o)] Source #

type IgnoreTellC o = InterpretC IgnoreTellH (Tell o) Source #

data ListenC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> ListenC o m α #

(MonadBaseControl b m, Monoid o) => MonadBaseControl b (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (ListenC o m) a #

Methods

liftBaseWith :: (RunInBase (ListenC o m) b -> b a) -> ListenC o m a #

restoreM :: StM (ListenC o m) a -> ListenC o m a #

MonadTrans (ListenC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> ListenC o m a #

Monoid o => MonadTransControl (ListenC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (ListenC o) a #

Methods

liftWith :: Monad m => (Run (ListenC o) -> m a) -> ListenC o m a #

restoreT :: Monad m => m (StT (ListenC o) a) -> ListenC o m a #

Monad m => Monad (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: ListenC o m a -> (a -> ListenC o m b) -> ListenC o m b #

(>>) :: ListenC o m a -> ListenC o m b -> ListenC o m b #

return :: a -> ListenC o m a #

Functor m => Functor (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> ListenC o m a -> ListenC o m b #

(<$) :: a -> ListenC o m b -> ListenC o m a #

MonadFix m => MonadFix (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> ListenC o m a) -> ListenC o m a #

MonadFail m => MonadFail (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> ListenC o m a #

Monad m => Applicative (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> ListenC o m a #

(<*>) :: ListenC o m (a -> b) -> ListenC o m a -> ListenC o m b #

liftA2 :: (a -> b -> c) -> ListenC o m a -> ListenC o m b -> ListenC o m c #

(*>) :: ListenC o m a -> ListenC o m b -> ListenC o m b #

(<*) :: ListenC o m a -> ListenC o m b -> ListenC o m a #

MonadIO m => MonadIO (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> ListenC o m a #

MonadPlus m => Alternative (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: ListenC o m a #

(<|>) :: ListenC o m a -> ListenC o m a -> ListenC o m a #

some :: ListenC o m a -> ListenC o m [a] #

many :: ListenC o m a -> ListenC o m [a] #

MonadPlus m => MonadPlus (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: ListenC o m a #

mplus :: ListenC o m a -> ListenC o m a -> ListenC o m a #

MonadThrow m => MonadThrow (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> ListenC o m a #

(Monoid o, MonadCatch m) => MonadCatch (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => ListenC o m a -> (e -> ListenC o m a) -> ListenC o m a #

(Monoid o, MonadMask m) => MonadMask (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. ListenC o m a -> ListenC o m a) -> ListenC o m b) -> ListenC o m b #

uninterruptibleMask :: ((forall a. ListenC o m a -> ListenC o m a) -> ListenC o m b) -> ListenC o m b #

generalBracket :: ListenC o m a -> (a -> ExitCase b -> ListenC o m c) -> (a -> ListenC o m b) -> ListenC o m (b, c) #

(Carrier m, Monoid o, Threads (WriterT o) (Prims m)) => Carrier (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (ListenC o m) :: [Effect] Source #

type Prims (ListenC o m) :: [Effect] Source #

type StT (ListenC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (ListenC o) a = StT (TellC o) a
type Derivs (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (ListenC o m) = Listen o ': (Tell o ': Derivs m)
type Prims (ListenC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (ListenC o m) = ListenPrim o ': Prims m
type StM (ListenC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (ListenC o m) a = StM (TellC o m) a

data ListenLazyC o m a Source #

Instances

Instances details
(Monoid o, MonadBase b m) => MonadBase b (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> ListenLazyC o m α #

(Monoid o, MonadBaseControl b m) => MonadBaseControl b (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (ListenLazyC o m) a #

Methods

liftBaseWith :: (RunInBase (ListenLazyC o m) b -> b a) -> ListenLazyC o m a #

restoreM :: StM (ListenLazyC o m) a -> ListenLazyC o m a #

Monoid o => MonadTrans (ListenLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> ListenLazyC o m a #

Monoid o => MonadTransControl (ListenLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (ListenLazyC o) a #

Methods

liftWith :: Monad m => (Run (ListenLazyC o) -> m a) -> ListenLazyC o m a #

restoreT :: Monad m => m (StT (ListenLazyC o) a) -> ListenLazyC o m a #

(Monoid o, Monad m) => Monad (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: ListenLazyC o m a -> (a -> ListenLazyC o m b) -> ListenLazyC o m b #

(>>) :: ListenLazyC o m a -> ListenLazyC o m b -> ListenLazyC o m b #

return :: a -> ListenLazyC o m a #

Functor m => Functor (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> ListenLazyC o m a -> ListenLazyC o m b #

(<$) :: a -> ListenLazyC o m b -> ListenLazyC o m a #

(Monoid o, MonadFix m) => MonadFix (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> ListenLazyC o m a) -> ListenLazyC o m a #

(Monoid o, MonadFail m) => MonadFail (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> ListenLazyC o m a #

(Monoid o, Applicative m) => Applicative (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> ListenLazyC o m a #

(<*>) :: ListenLazyC o m (a -> b) -> ListenLazyC o m a -> ListenLazyC o m b #

liftA2 :: (a -> b -> c) -> ListenLazyC o m a -> ListenLazyC o m b -> ListenLazyC o m c #

(*>) :: ListenLazyC o m a -> ListenLazyC o m b -> ListenLazyC o m b #

(<*) :: ListenLazyC o m a -> ListenLazyC o m b -> ListenLazyC o m a #

(Monoid o, MonadIO m) => MonadIO (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> ListenLazyC o m a #

(Monoid o, Alternative m) => Alternative (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: ListenLazyC o m a #

(<|>) :: ListenLazyC o m a -> ListenLazyC o m a -> ListenLazyC o m a #

some :: ListenLazyC o m a -> ListenLazyC o m [a] #

many :: ListenLazyC o m a -> ListenLazyC o m [a] #

(Monoid o, MonadPlus m) => MonadPlus (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: ListenLazyC o m a #

mplus :: ListenLazyC o m a -> ListenLazyC o m a -> ListenLazyC o m a #

(Monoid o, MonadThrow m) => MonadThrow (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> ListenLazyC o m a #

(Monoid o, MonadCatch m) => MonadCatch (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => ListenLazyC o m a -> (e -> ListenLazyC o m a) -> ListenLazyC o m a #

(Monoid o, MonadMask m) => MonadMask (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. ListenLazyC o m a -> ListenLazyC o m a) -> ListenLazyC o m b) -> ListenLazyC o m b #

uninterruptibleMask :: ((forall a. ListenLazyC o m a -> ListenLazyC o m a) -> ListenLazyC o m b) -> ListenLazyC o m b #

generalBracket :: ListenLazyC o m a -> (a -> ExitCase b -> ListenLazyC o m c) -> (a -> ListenLazyC o m b) -> ListenLazyC o m (b, c) #

(Monoid o, Carrier m, Threads (WriterT o) (Prims m)) => Carrier (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (ListenLazyC o m) :: [Effect] Source #

type Prims (ListenLazyC o m) :: [Effect] Source #

type StT (ListenLazyC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (ListenLazyC o) a = StT (WriterT o) a
type Derivs (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (ListenLazyC o m) = Listen o ': (Tell o ': Derivs m)
type Prims (ListenLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (ListenLazyC o m) = ListenPrim o ': Prims m
type StM (ListenLazyC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (ListenLazyC o m) a = StM (WriterT o m) a

data ListenTVarC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> ListenTVarC o m α #

MonadBaseControl b m => MonadBaseControl b (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (ListenTVarC o m) a #

Methods

liftBaseWith :: (RunInBase (ListenTVarC o m) b -> b a) -> ListenTVarC o m a #

restoreM :: StM (ListenTVarC o m) a -> ListenTVarC o m a #

MonadTrans (ListenTVarC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> ListenTVarC o m a #

MonadTransControl (ListenTVarC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (ListenTVarC o) a #

Methods

liftWith :: Monad m => (Run (ListenTVarC o) -> m a) -> ListenTVarC o m a #

restoreT :: Monad m => m (StT (ListenTVarC o) a) -> ListenTVarC o m a #

Monad m => Monad (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

(>>=) :: ListenTVarC o m a -> (a -> ListenTVarC o m b) -> ListenTVarC o m b #

(>>) :: ListenTVarC o m a -> ListenTVarC o m b -> ListenTVarC o m b #

return :: a -> ListenTVarC o m a #

Functor m => Functor (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> ListenTVarC o m a -> ListenTVarC o m b #

(<$) :: a -> ListenTVarC o m b -> ListenTVarC o m a #

MonadFix m => MonadFix (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> ListenTVarC o m a) -> ListenTVarC o m a #

MonadFail m => MonadFail (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> ListenTVarC o m a #

Applicative m => Applicative (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

pure :: a -> ListenTVarC o m a #

(<*>) :: ListenTVarC o m (a -> b) -> ListenTVarC o m a -> ListenTVarC o m b #

liftA2 :: (a -> b -> c) -> ListenTVarC o m a -> ListenTVarC o m b -> ListenTVarC o m c #

(*>) :: ListenTVarC o m a -> ListenTVarC o m b -> ListenTVarC o m b #

(<*) :: ListenTVarC o m a -> ListenTVarC o m b -> ListenTVarC o m a #

MonadIO m => MonadIO (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> ListenTVarC o m a #

Alternative m => Alternative (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

empty :: ListenTVarC o m a #

(<|>) :: ListenTVarC o m a -> ListenTVarC o m a -> ListenTVarC o m a #

some :: ListenTVarC o m a -> ListenTVarC o m [a] #

many :: ListenTVarC o m a -> ListenTVarC o m [a] #

MonadPlus m => MonadPlus (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mzero :: ListenTVarC o m a #

mplus :: ListenTVarC o m a -> ListenTVarC o m a -> ListenTVarC o m a #

MonadThrow m => MonadThrow (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> ListenTVarC o m a #

MonadCatch m => MonadCatch (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

catch :: Exception e => ListenTVarC o m a -> (e -> ListenTVarC o m a) -> ListenTVarC o m a #

MonadMask m => MonadMask (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. ListenTVarC o m a -> ListenTVarC o m a) -> ListenTVarC o m b) -> ListenTVarC o m b #

uninterruptibleMask :: ((forall a. ListenTVarC o m a -> ListenTVarC o m a) -> ListenTVarC o m b) -> ListenTVarC o m b #

generalBracket :: ListenTVarC o m a -> (a -> ExitCase b -> ListenTVarC o m c) -> (a -> ListenTVarC o m b) -> ListenTVarC o m (b, c) #

(Monoid o, Eff (Embed IO) m, MonadMask m, Threads (ReaderT (o -> STM ())) (Prims m)) => Carrier (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (ListenTVarC o m) :: [Effect] Source #

type Prims (ListenTVarC o m) :: [Effect] Source #

type StT (ListenTVarC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type StT (ListenTVarC o) a
type Derivs (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (ListenTVarC o m)
type Prims (ListenTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (ListenTVarC o m)
type StM (ListenTVarC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

type StM (ListenTVarC o m) a

data ListenIntoEndoListenC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> ListenIntoEndoListenC o m α #

MonadBaseControl b m => MonadBaseControl b (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (ListenIntoEndoListenC o m) a #

MonadTrans (ListenIntoEndoListenC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> ListenIntoEndoListenC o m a #

MonadTransControl (ListenIntoEndoListenC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (ListenIntoEndoListenC o) a #

Monad m => Monad (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Functor m => Functor (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> ListenIntoEndoListenC o m a -> ListenIntoEndoListenC o m b #

(<$) :: a -> ListenIntoEndoListenC o m b -> ListenIntoEndoListenC o m a #

MonadFix m => MonadFix (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> ListenIntoEndoListenC o m a) -> ListenIntoEndoListenC o m a #

MonadFail m => MonadFail (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> ListenIntoEndoListenC o m a #

Applicative m => Applicative (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadIO m => MonadIO (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> ListenIntoEndoListenC o m a #

Alternative m => Alternative (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadPlus m => MonadPlus (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadThrow m => MonadThrow (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> ListenIntoEndoListenC o m a #

MonadCatch m => MonadCatch (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadMask m => MonadMask (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

(Monoid o, HeadEffs '[Listen (Endo o), Tell (Endo o)] m) => Carrier (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (ListenIntoEndoListenC o m) :: [Effect] Source #

type Prims (ListenIntoEndoListenC o m) :: [Effect] Source #

type StT (ListenIntoEndoListenC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (ListenIntoEndoListenC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type StM (ListenIntoEndoListenC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

data WriterC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> WriterC o m α #

(MonadBaseControl b m, Monoid o) => MonadBaseControl b (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (WriterC o m) a #

Methods

liftBaseWith :: (RunInBase (WriterC o m) b -> b a) -> WriterC o m a #

restoreM :: StM (WriterC o m) a -> WriterC o m a #

MonadTrans (WriterC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> WriterC o m a #

Monoid o => MonadTransControl (WriterC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (WriterC o) a #

Methods

liftWith :: Monad m => (Run (WriterC o) -> m a) -> WriterC o m a #

restoreT :: Monad m => m (StT (WriterC o) a) -> WriterC o m a #

Monad m => Monad (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: WriterC o m a -> (a -> WriterC o m b) -> WriterC o m b #

(>>) :: WriterC o m a -> WriterC o m b -> WriterC o m b #

return :: a -> WriterC o m a #

Functor m => Functor (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> WriterC o m a -> WriterC o m b #

(<$) :: a -> WriterC o m b -> WriterC o m a #

MonadFix m => MonadFix (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> WriterC o m a) -> WriterC o m a #

MonadFail m => MonadFail (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> WriterC o m a #

Monad m => Applicative (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> WriterC o m a #

(<*>) :: WriterC o m (a -> b) -> WriterC o m a -> WriterC o m b #

liftA2 :: (a -> b -> c) -> WriterC o m a -> WriterC o m b -> WriterC o m c #

(*>) :: WriterC o m a -> WriterC o m b -> WriterC o m b #

(<*) :: WriterC o m a -> WriterC o m b -> WriterC o m a #

MonadIO m => MonadIO (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> WriterC o m a #

MonadPlus m => Alternative (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: WriterC o m a #

(<|>) :: WriterC o m a -> WriterC o m a -> WriterC o m a #

some :: WriterC o m a -> WriterC o m [a] #

many :: WriterC o m a -> WriterC o m [a] #

MonadPlus m => MonadPlus (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: WriterC o m a #

mplus :: WriterC o m a -> WriterC o m a -> WriterC o m a #

MonadThrow m => MonadThrow (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> WriterC o m a #

(Monoid o, MonadCatch m) => MonadCatch (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => WriterC o m a -> (e -> WriterC o m a) -> WriterC o m a #

(Monoid o, MonadMask m) => MonadMask (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. WriterC o m a -> WriterC o m a) -> WriterC o m b) -> WriterC o m b #

uninterruptibleMask :: ((forall a. WriterC o m a -> WriterC o m a) -> WriterC o m b) -> WriterC o m b #

generalBracket :: WriterC o m a -> (a -> ExitCase b -> WriterC o m c) -> (a -> WriterC o m b) -> WriterC o m (b, c) #

(Carrier m, Monoid o, Threads (WriterT o) (Prims m)) => Carrier (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (WriterC o m) :: [Effect] Source #

type Prims (WriterC o m) :: [Effect] Source #

type StT (WriterC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (WriterC o) a = StT (TellC o) a
type Derivs (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (WriterC o m) = Pass o ': (Listen o ': (Tell o ': Derivs m))
type Prims (WriterC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (WriterC o m) = WriterPrim o ': Prims m
type StM (WriterC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (WriterC o m) a = StM (TellC o m) a

data WriterLazyC o m a Source #

Instances

Instances details
(Monoid o, MonadBase b m) => MonadBase b (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftBase :: b α -> WriterLazyC o m α #

(Monoid o, MonadBaseControl b m) => MonadBaseControl b (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StM (WriterLazyC o m) a #

Methods

liftBaseWith :: (RunInBase (WriterLazyC o m) b -> b a) -> WriterLazyC o m a #

restoreM :: StM (WriterLazyC o m) a -> WriterLazyC o m a #

Monoid o => MonadTrans (WriterLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

lift :: Monad m => m a -> WriterLazyC o m a #

Monoid o => MonadTransControl (WriterLazyC o) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type StT (WriterLazyC o) a #

Methods

liftWith :: Monad m => (Run (WriterLazyC o) -> m a) -> WriterLazyC o m a #

restoreT :: Monad m => m (StT (WriterLazyC o) a) -> WriterLazyC o m a #

(Monoid o, Monad m) => Monad (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

(>>=) :: WriterLazyC o m a -> (a -> WriterLazyC o m b) -> WriterLazyC o m b #

(>>) :: WriterLazyC o m a -> WriterLazyC o m b -> WriterLazyC o m b #

return :: a -> WriterLazyC o m a #

Functor m => Functor (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fmap :: (a -> b) -> WriterLazyC o m a -> WriterLazyC o m b #

(<$) :: a -> WriterLazyC o m b -> WriterLazyC o m a #

(Monoid o, MonadFix m) => MonadFix (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mfix :: (a -> WriterLazyC o m a) -> WriterLazyC o m a #

(Monoid o, MonadFail m) => MonadFail (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

fail :: String -> WriterLazyC o m a #

(Monoid o, Applicative m) => Applicative (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

pure :: a -> WriterLazyC o m a #

(<*>) :: WriterLazyC o m (a -> b) -> WriterLazyC o m a -> WriterLazyC o m b #

liftA2 :: (a -> b -> c) -> WriterLazyC o m a -> WriterLazyC o m b -> WriterLazyC o m c #

(*>) :: WriterLazyC o m a -> WriterLazyC o m b -> WriterLazyC o m b #

(<*) :: WriterLazyC o m a -> WriterLazyC o m b -> WriterLazyC o m a #

(Monoid o, MonadIO m) => MonadIO (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

liftIO :: IO a -> WriterLazyC o m a #

(Monoid o, Alternative m) => Alternative (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

empty :: WriterLazyC o m a #

(<|>) :: WriterLazyC o m a -> WriterLazyC o m a -> WriterLazyC o m a #

some :: WriterLazyC o m a -> WriterLazyC o m [a] #

many :: WriterLazyC o m a -> WriterLazyC o m [a] #

(Monoid o, MonadPlus m) => MonadPlus (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mzero :: WriterLazyC o m a #

mplus :: WriterLazyC o m a -> WriterLazyC o m a -> WriterLazyC o m a #

(Monoid o, MonadThrow m) => MonadThrow (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

throwM :: Exception e => e -> WriterLazyC o m a #

(Monoid o, MonadCatch m) => MonadCatch (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

catch :: Exception e => WriterLazyC o m a -> (e -> WriterLazyC o m a) -> WriterLazyC o m a #

(Monoid o, MonadMask m) => MonadMask (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Methods

mask :: ((forall a. WriterLazyC o m a -> WriterLazyC o m a) -> WriterLazyC o m b) -> WriterLazyC o m b #

uninterruptibleMask :: ((forall a. WriterLazyC o m a -> WriterLazyC o m a) -> WriterLazyC o m b) -> WriterLazyC o m b #

generalBracket :: WriterLazyC o m a -> (a -> ExitCase b -> WriterLazyC o m c) -> (a -> WriterLazyC o m b) -> WriterLazyC o m (b, c) #

(Monoid o, Carrier m, Threads (WriterT o) (Prims m)) => Carrier (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

Associated Types

type Derivs (WriterLazyC o m) :: [Effect] Source #

type Prims (WriterLazyC o m) :: [Effect] Source #

type StT (WriterLazyC o) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StT (WriterLazyC o) a = StT (WriterT o) a
type Derivs (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Derivs (WriterLazyC o m) = Pass o ': (Listen o ': (Tell o ': Derivs m))
type Prims (WriterLazyC o m) Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type Prims (WriterLazyC o m) = WriterPrim o ': Prims m
type StM (WriterLazyC o m) a Source # 
Instance details

Defined in Control.Effect.Internal.Writer

type StM (WriterLazyC o m) a = StM (WriterT o m) a

data WriterTVarC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> WriterTVarC o m α #

MonadBaseControl b m => MonadBaseControl b (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (WriterTVarC o m) a #

Methods

liftBaseWith :: (RunInBase (WriterTVarC o m) b -> b a) -> WriterTVarC o m a #

restoreM :: StM (WriterTVarC o m) a -> WriterTVarC o m a #

MonadTrans (WriterTVarC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> WriterTVarC o m a #

MonadTransControl (WriterTVarC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (WriterTVarC o) a #

Methods

liftWith :: Monad m => (Run (WriterTVarC o) -> m a) -> WriterTVarC o m a #

restoreT :: Monad m => m (StT (WriterTVarC o) a) -> WriterTVarC o m a #

Monad m => Monad (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

(>>=) :: WriterTVarC o m a -> (a -> WriterTVarC o m b) -> WriterTVarC o m b #

(>>) :: WriterTVarC o m a -> WriterTVarC o m b -> WriterTVarC o m b #

return :: a -> WriterTVarC o m a #

Functor m => Functor (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> WriterTVarC o m a -> WriterTVarC o m b #

(<$) :: a -> WriterTVarC o m b -> WriterTVarC o m a #

MonadFix m => MonadFix (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> WriterTVarC o m a) -> WriterTVarC o m a #

MonadFail m => MonadFail (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> WriterTVarC o m a #

Applicative m => Applicative (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

pure :: a -> WriterTVarC o m a #

(<*>) :: WriterTVarC o m (a -> b) -> WriterTVarC o m a -> WriterTVarC o m b #

liftA2 :: (a -> b -> c) -> WriterTVarC o m a -> WriterTVarC o m b -> WriterTVarC o m c #

(*>) :: WriterTVarC o m a -> WriterTVarC o m b -> WriterTVarC o m b #

(<*) :: WriterTVarC o m a -> WriterTVarC o m b -> WriterTVarC o m a #

MonadIO m => MonadIO (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> WriterTVarC o m a #

Alternative m => Alternative (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

empty :: WriterTVarC o m a #

(<|>) :: WriterTVarC o m a -> WriterTVarC o m a -> WriterTVarC o m a #

some :: WriterTVarC o m a -> WriterTVarC o m [a] #

many :: WriterTVarC o m a -> WriterTVarC o m [a] #

MonadPlus m => MonadPlus (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mzero :: WriterTVarC o m a #

mplus :: WriterTVarC o m a -> WriterTVarC o m a -> WriterTVarC o m a #

MonadThrow m => MonadThrow (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> WriterTVarC o m a #

MonadCatch m => MonadCatch (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

catch :: Exception e => WriterTVarC o m a -> (e -> WriterTVarC o m a) -> WriterTVarC o m a #

MonadMask m => MonadMask (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. WriterTVarC o m a -> WriterTVarC o m a) -> WriterTVarC o m b) -> WriterTVarC o m b #

uninterruptibleMask :: ((forall a. WriterTVarC o m a -> WriterTVarC o m a) -> WriterTVarC o m b) -> WriterTVarC o m b #

generalBracket :: WriterTVarC o m a -> (a -> ExitCase b -> WriterTVarC o m c) -> (a -> WriterTVarC o m b) -> WriterTVarC o m (b, c) #

(Monoid o, Eff (Embed IO) m, MonadMask m, Threads (ReaderT (o -> STM ())) (Prims m)) => Carrier (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (WriterTVarC o m) :: [Effect] Source #

type Prims (WriterTVarC o m) :: [Effect] Source #

type StT (WriterTVarC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type StT (WriterTVarC o) a
type Derivs (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (WriterTVarC o m)
type Prims (WriterTVarC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (WriterTVarC o m)
type StM (WriterTVarC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

type StM (WriterTVarC o m) a

data WriterToBracketC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> WriterToBracketC o m α #

MonadBaseControl b m => MonadBaseControl b (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (WriterToBracketC o m) a #

MonadTrans (WriterToBracketC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> WriterToBracketC o m a #

MonadTransControl (WriterToBracketC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (WriterToBracketC o) a #

Methods

liftWith :: Monad m => (Run (WriterToBracketC o) -> m a) -> WriterToBracketC o m a #

restoreT :: Monad m => m (StT (WriterToBracketC o) a) -> WriterToBracketC o m a #

Monad m => Monad (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

(>>=) :: WriterToBracketC o m a -> (a -> WriterToBracketC o m b) -> WriterToBracketC o m b #

(>>) :: WriterToBracketC o m a -> WriterToBracketC o m b -> WriterToBracketC o m b #

return :: a -> WriterToBracketC o m a #

Functor m => Functor (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> WriterToBracketC o m a -> WriterToBracketC o m b #

(<$) :: a -> WriterToBracketC o m b -> WriterToBracketC o m a #

MonadFix m => MonadFix (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> WriterToBracketC o m a) -> WriterToBracketC o m a #

MonadFail m => MonadFail (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> WriterToBracketC o m a #

Applicative m => Applicative (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

pure :: a -> WriterToBracketC o m a #

(<*>) :: WriterToBracketC o m (a -> b) -> WriterToBracketC o m a -> WriterToBracketC o m b #

liftA2 :: (a -> b -> c) -> WriterToBracketC o m a -> WriterToBracketC o m b -> WriterToBracketC o m c #

(*>) :: WriterToBracketC o m a -> WriterToBracketC o m b -> WriterToBracketC o m b #

(<*) :: WriterToBracketC o m a -> WriterToBracketC o m b -> WriterToBracketC o m a #

MonadIO m => MonadIO (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> WriterToBracketC o m a #

Alternative m => Alternative (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadPlus m => MonadPlus (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadThrow m => MonadThrow (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> WriterToBracketC o m a #

MonadCatch m => MonadCatch (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

catch :: Exception e => WriterToBracketC o m a -> (e -> WriterToBracketC o m a) -> WriterToBracketC o m a #

MonadMask m => MonadMask (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mask :: ((forall a. WriterToBracketC o m a -> WriterToBracketC o m a) -> WriterToBracketC o m b) -> WriterToBracketC o m b #

uninterruptibleMask :: ((forall a. WriterToBracketC o m a -> WriterToBracketC o m a) -> WriterToBracketC o m b) -> WriterToBracketC o m b #

generalBracket :: WriterToBracketC o m a -> (a -> ExitCase b -> WriterToBracketC o m c) -> (a -> WriterToBracketC o m b) -> WriterToBracketC o m (b, c) #

(Effs '[Bracket, Embed IO] m, Monoid o, Threads (ReaderT (o -> STM ())) (Prims m)) => Carrier (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (WriterToBracketC o m) :: [Effect] Source #

type Prims (WriterToBracketC o m) :: [Effect] Source #

type StT (WriterToBracketC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (WriterToBracketC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type StM (WriterToBracketC o m) a Source # 
Instance details

Defined in Control.Effect.Writer

type StM (WriterToBracketC o m) a

data WriterIntoEndoWriterC o m a Source #

Instances

Instances details
MonadBase b m => MonadBase b (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftBase :: b α -> WriterIntoEndoWriterC o m α #

MonadBaseControl b m => MonadBaseControl b (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StM (WriterIntoEndoWriterC o m) a #

MonadTrans (WriterIntoEndoWriterC o) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

lift :: Monad m => m a -> WriterIntoEndoWriterC o m a #

MonadTransControl (WriterIntoEndoWriterC o) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type StT (WriterIntoEndoWriterC o) a #

Monad m => Monad (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Functor m => Functor (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fmap :: (a -> b) -> WriterIntoEndoWriterC o m a -> WriterIntoEndoWriterC o m b #

(<$) :: a -> WriterIntoEndoWriterC o m b -> WriterIntoEndoWriterC o m a #

MonadFix m => MonadFix (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

mfix :: (a -> WriterIntoEndoWriterC o m a) -> WriterIntoEndoWriterC o m a #

MonadFail m => MonadFail (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

fail :: String -> WriterIntoEndoWriterC o m a #

Applicative m => Applicative (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadIO m => MonadIO (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

liftIO :: IO a -> WriterIntoEndoWriterC o m a #

Alternative m => Alternative (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadPlus m => MonadPlus (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadThrow m => MonadThrow (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Methods

throwM :: Exception e => e -> WriterIntoEndoWriterC o m a #

MonadCatch m => MonadCatch (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

MonadMask m => MonadMask (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

(Monoid o, HeadEffs '[Pass (Endo o), Listen (Endo o), Tell (Endo o)] m) => Carrier (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

Associated Types

type Derivs (WriterIntoEndoWriterC o m) :: [Effect] Source #

type Prims (WriterIntoEndoWriterC o m) :: [Effect] Source #

type StT (WriterIntoEndoWriterC o) a Source # 
Instance details

Defined in Control.Effect.Writer

type Derivs (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type Prims (WriterIntoEndoWriterC o m) Source # 
Instance details

Defined in Control.Effect.Writer

type StM (WriterIntoEndoWriterC o m) a Source # 
Instance details

Defined in Control.Effect.Writer