| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Eff.LogWriter.Capture
Description
Capture LogMessages 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 #
Constructors
| MkCaptureLogs | |
Fields
| |
Instances
type CaptureLogWriter = Writer LogMessage Source #
Alias for the Writer that contains the captured LogMessages from CaptureLogs.
runCaptureLogWriter :: Eff (CaptureLogWriter ': e) a -> Eff e (a, [LogMessage]) Source #
Run a Writer for LogMessages.
Such a Writer is needed to handle CaptureLogWriter