| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Effect.Internal.Writer
Synopsis
- data Tell o :: Effect where
- data Listen o :: Effect where
- newtype Pass o :: Effect where
- newtype TellC o m a = TellC {}
- newtype ListenC o m a = ListenC {}
- newtype WriterC o m a = WriterC {}
- newtype TellLazyC o m a = TellLazyC {
- unTellLazyC :: WriterT o m a
- newtype ListenLazyC o m a = ListenLazyC {
- unListenLazyC :: WriterT o m a
- newtype WriterLazyC o m a = WriterLazyC {
- _unWriterLazyC :: WriterT o m a
- class (forall o. Monoid o => Threads (WriterT o) p) => WriterThreads p
- class (forall o. Monoid o => Threads (WriterT o) p) => WriterLazyThreads p
Documentation
data Tell o :: Effect where Source #
An effect for arbitrary output.
Instances
| (Monoid w, Carrier m, Threaders '[SteppedThreads] m p) => PrimHandler ListenSteppedH (ListenPrim w) (SteppedC (Tell w) m) Source # | |
Defined in Control.Effect.Internal.Intercept Methods effPrimHandler :: EffPrimHandler (ListenPrim w) (SteppedC (Tell w) m) Source # | |
data Listen o :: Effect 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 o m a Source #
Instances
newtype WriterC o m a Source #
Instances
newtype TellLazyC o m a Source #
Constructors
| TellLazyC | |
Fields
| |
Instances
newtype ListenLazyC o m a Source #
Constructors
| ListenLazyC | |
Fields
| |
Instances
newtype WriterLazyC o m a Source #
Constructors
| WriterLazyC | |
Fields
| |
Instances
class (forall o. Monoid o => Threads (WriterT o) p) => WriterThreads p Source #
WriterThreads accepts the following primitive effects:
RegionalsOptionals(whensis a functor)BaseControlbListenPrimo(whenois aMonoid)WriterPrimo(whenois aMonoid)ReaderPrimiMaskBracketFixSplit
Instances
| (forall o. Monoid o => Threads (WriterT o) p) => WriterThreads p Source # | |
Defined in Control.Effect.Internal.Writer | |
class (forall o. Monoid o => Threads (WriterT o) p) => WriterLazyThreads p Source #
WriterLazyThreads accepts the following primitive effects:
RegionalsOptionals(whensis a functor)BaseControlbListenPrimo(whenois aMonoid)WriterPrimo(whenois aMonoid)ReaderPrimiMaskBracketFixSplit
Instances
| (forall o. Monoid o => Threads (WriterT o) p) => WriterLazyThreads p Source # | |
Defined in Control.Effect.Internal.Writer | |