| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Effect.Internal.Writer
Synopsis
- data Tell s m a where
- data Listen s m a where
- data Pass s m a where
- newtype TellC s m a = TellC {}
- newtype ListenC s m a = ListenC {}
- newtype WriterC s m a = WriterC {}
- newtype TellLazyC s m a = TellLazyC {
- unTellLazyC :: WriterT s m a
- newtype ListenLazyC s m a = ListenLazyC {
- unListenLazyC :: WriterT s m a
- newtype WriterLazyC s m a = WriterLazyC {
- _unWriterLazyC :: WriterT s m a
- class (forall s. Monoid s => Threads (WriterT s) p) => WriterThreads p
- class (forall s. Monoid s => Threads (WriterT s) p) => WriterLazyThreads p
Documentation
data Tell s m a where Source #
An effect for arbitrary output.
Instances
| (Monoid w, Carrier m, Threaders (SteppedThreads ': ([] :: [[Effect] -> Constraint])) m p) => PrimHandler ListenSteppedH (ListenPrim w) (SteppedC (Tell w :: (Type -> Type) -> Type -> Type) m) Source # | |
Defined in Control.Effect.Internal.Intercept Methods effPrimHandler :: EffPrimHandler (ListenPrim w) (SteppedC (Tell w) m) Source # | |
data Listen s m a where Source #
An effect for hearing what a computation
has to tell.
Instances
| Eff (ListenPrim w) m => Handler ListenSteppedH (Listen w) m Source # | |
Defined in Control.Effect.Internal.Intercept Methods effHandler :: EffHandler (Listen w) m Source # | |
Instances
newtype ListenC s m a Source #
Instances
newtype WriterC s m a Source #
Instances
newtype TellLazyC s m a Source #
Constructors
| TellLazyC | |
Fields
| |
Instances
newtype ListenLazyC s m a Source #
Constructors
| ListenLazyC | |
Fields
| |
Instances
newtype WriterLazyC s m a Source #
Constructors
| WriterLazyC | |
Fields
| |
Instances
class (forall s. Monoid s => Threads (WriterT s) p) => WriterThreads p Source #
WriterThreads accepts the following primitive effects:
RegionalsOptionals(whensis a functor)BaseControlbListenPrims(whensis aMonoid)WriterPrims(whensis aMonoid)ReaderPrimiMaskBracketFixSplit
Instances
| (forall s. Monoid s => Threads (WriterT s) p) => WriterThreads p Source # | |
Defined in Control.Effect.Internal.Writer | |
class (forall s. Monoid s => Threads (WriterT s) p) => WriterLazyThreads p Source #
WriterLazyThreads accepts the following primitive effects:
RegionalsOptionals(whensis a functor)BaseControlbListenPrims(whensis aMonoid)WriterPrims(whensis aMonoid)ReaderPrimiMaskBracketFixSplit
Instances
| (forall s. Monoid s => Threads (WriterT s) p) => WriterLazyThreads p Source # | |
Defined in Control.Effect.Internal.Writer | |