Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- interpretDataLogStdoutWith :: Member (Embed IO) r => (a -> Text) -> InterpreterFor (DataLog a) r
- interpretDataLogStdout :: Show a => Member (Embed IO) r => InterpreterFor (DataLog a) r
- interpretLogStdoutWith :: Members [Embed IO, GhcTime] r => (LogEntry LogMessage -> Text) -> InterpreterFor Log r
- interpretLogStdoutLevelWith :: Members [Embed IO, GhcTime] r => (LogEntry LogMessage -> Text) -> Maybe Severity -> InterpreterFor Log r
- interpretLogStdout :: Members [Embed IO, GhcTime] r => InterpreterFor Log r
- interpretLogStdoutLevel :: Members [Embed IO, GhcTime] r => Maybe Severity -> InterpreterFor Log r
- interpretLogStdout' :: Member (Embed IO) r => InterpreterFor Log r
- interpretLogStdoutConc :: Members [Resource, Async, Race, Embed IO] r => InterpreterFor Log r
- interpretLogStdoutLevelConc :: Members [Resource, Async, Race, Embed IO] r => Maybe Severity -> InterpreterFor Log r
Documentation
interpretDataLogStdoutWith :: Member (Embed IO) r => (a -> Text) -> InterpreterFor (DataLog a) r Source #
interpretDataLogStdout :: Show a => Member (Embed IO) r => InterpreterFor (DataLog a) r Source #
interpretLogStdoutWith :: Members [Embed IO, GhcTime] r => (LogEntry LogMessage -> Text) -> InterpreterFor Log r Source #
interpretLogStdoutLevelWith :: Members [Embed IO, GhcTime] r => (LogEntry LogMessage -> Text) -> Maybe Severity -> InterpreterFor Log r Source #
Like interpretLogStdoutWith
, but setting a log level.
Nothing
causes no messages to be logged.
interpretLogStdout :: Members [Embed IO, GhcTime] r => InterpreterFor Log r Source #
Interpret Log
by printing to stdout, using the default formatter.
Since this adds a timestamp, it has a dependency on GhcTime
.
Use interpretLogStdout'
for a variant that interprets GhcTime
in-place.
interpretLogStdoutLevel :: Members [Embed IO, GhcTime] r => Maybe Severity -> InterpreterFor Log r Source #
Like interpretLogStdout
, but setting a log level.
Nothing
causes no messages to be logged.
interpretLogStdout' :: Member (Embed IO) r => InterpreterFor Log r Source #
interpretLogStdoutConc :: Members [Resource, Async, Race, Embed IO] r => InterpreterFor Log r Source #
Like interpretLogStdout
, but process messages concurrently.
interpretLogStdoutLevelConc :: Members [Resource, Async, Race, Embed IO] r => Maybe Severity -> InterpreterFor Log r Source #
Like interpretLogStdout
, but process messages concurrently.