polysemy-conc-0.14.1.1: Polysemy effects for concurrency
Safe HaskellNone
LanguageGHC2021

Polysemy.Conc.Interpreter.Queue.Pure

Description

 
Synopsis

Documentation

interpretQueueListReadOnlyAtomicWith :: forall d (r :: EffectRow). Member (AtomicState [d] :: (Type -> Type) -> Type -> Type) r => InterpreterFor (Queue d) r Source #

Reinterpret Queue as AtomicState with a list that cannot be written to. Useful for testing.

interpretQueueListReadOnlyStateWith :: forall d (r :: EffectRow). Member (State [d] :: (Type -> Type) -> Type -> Type) r => InterpreterFor (Queue d) r Source #

Reinterpret Queue as State with a list that cannot be written to. Useful for testing.

interpretQueueListReadOnlyState :: forall d (r :: [Effect]). [d] -> InterpreterFor (Queue d) r Source #

Variant of interpretQueueListReadOnlyAtomicWith that interprets the State.