Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- stderr :: (MonadIO m, MonadIO n) => LineRenderer level path msg -> m (Log level path msg -> n ())
- handle :: (MonadIO m, MonadIO n) => Maybe Bool -> Handle -> LineRenderer level path msg -> m (Log level path msg -> n ())
- blob :: (MonadIO m, MonadIO n) => Handle -> BlobRenderer level path msg -> m (Log level path msg -> n ())
- data LineRenderer level path msg = LineRendererUtf8 !(Bool -> Log level path msg -> Builder)
- data BlobRenderer level path msg = BlobRenderer !(Log level path msg -> Builder)
Documentation
:: (MonadIO m, MonadIO n) | |
=> LineRenderer level path msg | How to render each |
-> m (Log level path msg -> n ()) |
:: (MonadIO m, MonadIO n) | |
=> Maybe Bool | Whether to render with colors. If |
-> Handle | Handle where to write |
-> LineRenderer level path msg | How to render each |
-> m (Log level path msg -> n ()) |
Like blob
, but each Log
is rendered as text in its own line.
If the given Handle
is associated to a TTY supporting ANSI colors, and
the given LineRenderer
supports rendering with colors, and you ask for
it, then you will get colorful output.
data LineRenderer level path msg Source #
How to render a Log
as a line of text.
LineRendererUtf8 !(Bool -> Log level path msg -> Builder) | The returned bytes must not contain a leading nor trailing newline. The |
data BlobRenderer level path msg Source #
How to render a Log
as a binary blob.
BlobRenderer !(Log level path msg -> Builder) |