| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Effect.Logger
Contents
Description
A simple logger effect that takes all the information a MonadLogger monad
would take. Use the logging functions of MonadLogger to log things the way
you want, as there are many options there (TH or non-TH).
Documentation
data Logger (m :: Type -> Type) k where Source #
Constructors
| LoggerLog :: forall msg (m :: Type -> Type). ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> Logger m () | See |
Instances
| (Algebra sig m, MonadIO m) => Algebra (Logger :+: sig) (LoggerIOC HandleSelector m) Source # | |
Defined in Control.Carrier.Logger.IO | |
| (Algebra sig m, Applicative w, Monoid (w LogLine)) => Algebra (Logger :+: sig) (LoggerWriterC w m) Source # | |
Defined in Control.Carrier.Logger.Writer Methods alg :: forall ctx (n :: Type -> Type) a. Functor ctx => Handler ctx n (LoggerWriterC w m) -> (Logger :+: sig) n a -> ctx () -> LoggerWriterC w m (ctx a) # | |
Orphan instances
| (Has Logger sig m, Monad m) => MonadLogger m Source # | Unfortunately, we need to implement the |