Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Opaque type for an operations log that provides fast O(1) appends.
Documentation
An efficiently catenable sequence of log entries.
Instances
Semigroup Log Source # | |
Monoid Log Source # | |
(Applicative m, Monad m) => MonadLogger (WriterT Log m) Source # | |
(Applicative m, Monad m) => MonadLogger (RWST r Log s m) Source # | |
(Applicative m, Monad m) => MonadLogger (RWST r Log s m) Source # | |
toText :: Log -> Text Source #
Transform a log into text. 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 # | |
(Applicative m, Monad m) => MonadLogger (WriterT Log m) Source # | |
Monad m => MonadLogger (DistNestT rep m) Source # | |
(Applicative m, Monad m) => MonadLogger (RWST r Log s m) Source # | |
(Applicative m, Monad m) => MonadLogger (RWST r Log s m) Source # | |