Returns whether to ANSI escape codes with the stream out
.
Equations
Instances For
Wrap text in ANSI escape sequences to make it bold and color it the ANSI colorCode
.
Resets all terminal font attributes at the end of the text.
Equations
Instances For
A pure representation of output stream.
- stdout : OutStream
- stderr : OutStream
- stream (s : IO.FS.Stream) : OutStream
Instances For
Unicode icon for representing the log level.
Equations
Instances For
ANSI escape code for coloring text of at the log level.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Takes log entries between start
(inclusive) and stop
(exclusive).
Equations
Instances For
Removes log entries after pos
(inclusive).
Equations
Instances For
Takes log entries before pos
(exclusive).
Equations
Instances For
Equations
Instances For
Returns the monad's log.
Equations
Instances For
Returns the current end position of the monad's log (i.e., its size).
Equations
Instances For
Removes the section monad's log starting and returns it.
Equations
Instances For
Returns the log from x
while leaving it intact in the monad.
Equations
Instances For
Returns the log from x
and its result while leaving it intact in the monad.
Equations
Instances For
Performs x
and backtracks any error to the log position before x
.
Equations
Instances For
Performs x
and groups all logs generated into an error block.
Equations
Instances For
Captures IO in x
into an informational log entry.
Equations
Instances For
Throw with the logged error message
.
Equations
Instances For
MonadError
instance for monads with Log
state and Log.Pos
errors.
Equations
Instances For
Fail without logging anything.
Equations
Instances For
Performs x
. If it fails, drop its log and perform y
.
Equations
Instances For
Alternative
instance for monads with Log
state and Log.Pos
errors.
Equations
Instances For
Run self
with the log taken from the state of the monad n
.
Warning: If lifting self
from m
to n
fails, the log will be lost.
Thus, this is best used when the lift cannot fail.
Equations
Instances For
Equations
Equations
Equations
Instances For
Run self
with the log taken from the state of the monad n
,
Warning: If lifting self
from m
to n
fails, the log will be lost.
Thus, this is best used when the lift cannot fail. This excludes the
native log position failure of ELogT
, which are lifted safely.
Equations
Instances For
Runs self
in n
and then replays the entries of the resulting log
using the new monad's logger
. Translates an exception in this monad
to a none
result.
Equations
Instances For
Runs self
in n
and then replays the entries of the resulting log
using the new monad's logger
. Translates an exception in this monad to
a failure
in the new monad.
Equations
Instances For
A monad equipped with a log, a log error position, and the ability to perform I/O.
Equations
Instances For
Runs a LogIO
action in BaseIO
.
Prints log entries of at least minLv
to out
.
Equations
Instances For
A monad equipped with a log function and the ability to perform I/O.
Unlike LogIO
, log entries are not retained by the monad but instead eagerly
passed to the log function.
Equations
Instances For
Runs a LoggerIO
action in BaseIO
.
Prints log entries of at least minLv
to out
.