Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 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 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 #
TellLazyC | |
|
Instances
newtype ListenLazyC s m a Source #
ListenLazyC | |
|
Instances
newtype WriterLazyC s m a Source #
WriterLazyC | |
|
Instances
class (forall s. Monoid s => Threads (WriterT s) p) => WriterThreads p Source #
WriterThreads
accepts the following primitive effects:
Regional
s
Optional
s
(whens
is a functor)BaseControl
b
ListenPrim
s
(whens
is aMonoid
)WriterPrim
s
(whens
is aMonoid
)ReaderPrim
i
Mask
Bracket
Fix
Split
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:
Regional
s
Optional
s
(whens
is a functor)BaseControl
b
ListenPrim
s
(whens
is aMonoid
)WriterPrim
s
(whens
is aMonoid
)ReaderPrim
i
Mask
Bracket
Fix
Split
Instances
(forall s. Monoid s => Threads (WriterT s) p) => WriterLazyThreads p Source # | |
Defined in Control.Effect.Internal.Writer |