Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Util.Tracer
Synopsis
- recordingTracerIORef ∷ IO (Tracer IO ev, IO [ev])
- recordingTracerTVar ∷ MonadSTM m ⇒ m (Tracer m ev, m [ev])
Documentation
recordingTracerIORef ∷ IO (Tracer IO ev, IO [ev]) Source #
Create a Tracer
that stores all events in an IORef
that is atomically
updated. The second return value lets you obtain the events recorded so far
(from oldest to newest). Obtaining the events does not erase them.
recordingTracerTVar ∷ MonadSTM m ⇒ m (Tracer m ev, m [ev]) Source #
Create a Tracer
that stores all events in a TVar
that is atomically
updated. The second return value lets you obtain the events recorded so far
(from oldest to newest). Obtaining the events does not erase them.