Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data Events (e :: Type) :: Effect where Source #
An event publisher that can be consumed from multiple threads.
subscribe :: forall e r. Member (Scoped_ (Consume e)) r => InterpreterFor (Consume e) r Source #
Create a new scope for Events
, causing the nested program to get its own copy of the event stream.
To be used with interpretEventsChan
.