Safe Haskell | None |
---|---|
Language | Haskell2010 |
Capture LogMessage
s to a Writer
.
Synopsis
- captureLogWriter :: LogWriter CaptureLogs
- newtype CaptureLogs a = MkCaptureLogs {
- unCaptureLogs :: Eff '[CaptureLogWriter] a
- type CaptureLogWriter = Writer LogMessage
- runCaptureLogWriter :: Eff (CaptureLogWriter ': e) a -> Eff e (a, [LogMessage])
Documentation
newtype CaptureLogs a Source #
Instances
type CaptureLogWriter = Writer LogMessage Source #
Alias for the Writer
that contains the captured LogMessage
s from CaptureLogs
.
runCaptureLogWriter :: Eff (CaptureLogWriter ': e) a -> Eff e (a, [LogMessage]) Source #
Run a Writer
for LogMessage
s.
Such a Writer
is needed to handle CaptureLogWriter