Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Opaque type for an operations log that provides fast O(1) appends.
Documentation
An efficiently catenable sequence of log entries.
toText :: Log -> Text Source #
Transform a log into pretty. Every log entry becomes its own line (or possibly more, in case of multi-line entries).
Typeclass for things that can be turned into a single-entry log.
class (Applicative m, Monad m) => MonadLogger m where Source #
Typeclass for monads that support logging.
logMsg :: ToLog a => a -> m () Source #
Add one log entry.
addLog :: Log -> m () Source #
Append an entire log.
Instances
MonadLogger PassM Source # | |
MonadLogger FutharkM Source # | |
MonadLogger IO Source # | |
Monad m => MonadLogger (DistNestT rep m) Source # | |
Monad m => MonadLogger (WriterT Log m) Source # | |
Monad m => MonadLogger (RWST r Log s m) Source # | |
Monad m => MonadLogger (RWST r Log s m) Source # | |