polysemy-log-0.11.1.0: Polysemy effects for logging
Safe HaskellNone
LanguageGHC2021

Polysemy.Log.Atomic

Description

 
Synopsis

Documentation

interpretDataLogAtomic' :: forall a (r :: EffectRow). Member (AtomicState [a] :: (Type -> Type) -> Type -> Type) r => InterpreterFor (DataLog a) r Source #

Interpret DataLog by prepending each message to a list in an AtomicState.

interpretDataLogAtomic :: forall a (r :: EffectRow). Member (Embed IO) r => InterpretersFor '[DataLog a, AtomicState [a] :: (Type -> Type) -> Type -> Type] r Source #

Interpret DataLog by prepending each message to a list in an AtomicState, then interpret the AtomicState in a TVar.

interpretLogAtomic' :: forall (r :: EffectRow). Member (AtomicState [LogMessage] :: (Type -> Type) -> Type -> Type) r => InterpreterFor Log r Source #

Interpret Log by prepending each message to a list in an AtomicState.

interpretLogAtomic :: forall (r :: EffectRow). Member (Embed IO) r => InterpretersFor '[Log, AtomicState [LogMessage] :: (Type -> Type) -> Type -> Type] r Source #

Interpret Log by prepending each message to a list in an AtomicState, then interpret the AtomicState in a TVar.