log-warper-1.9.0: Flexible, configurable, monadic and pretty logging

Safe HaskellNone
LanguageHaskell2010

System.Wlog.LoggerNameBox

Contents

Description

This module contains type classes for loggers that have LoggerName.

Synopsis

Remove boilerplater

newtype LoggerNameBox m a Source #

Default implementation of WithNamedLogger.

Instances
MonadTrans LoggerNameBox Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

lift :: Monad m => m a -> LoggerNameBox m a #

MonadReader r m => MonadReader r (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

ask :: LoggerNameBox m r #

local :: (r -> r) -> LoggerNameBox m a -> LoggerNameBox m a #

reader :: (r -> a) -> LoggerNameBox m a #

MonadState s m => MonadState s (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

get :: LoggerNameBox m s #

put :: s -> LoggerNameBox m () #

state :: (s -> (a, s)) -> LoggerNameBox m a #

MonadBase b m => MonadBase b (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

liftBase :: b α -> LoggerNameBox m α #

MonadBaseControl b m => MonadBaseControl b (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Associated Types

type StM (LoggerNameBox m) a :: Type #

MonadError e m => MonadError e (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

throwError :: e -> LoggerNameBox m a #

catchError :: LoggerNameBox m a -> (e -> LoggerNameBox m a) -> LoggerNameBox m a #

Monad m => Monad (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

(>>=) :: LoggerNameBox m a -> (a -> LoggerNameBox m b) -> LoggerNameBox m b #

(>>) :: LoggerNameBox m a -> LoggerNameBox m b -> LoggerNameBox m b #

return :: a -> LoggerNameBox m a #

fail :: String -> LoggerNameBox m a #

Functor m => Functor (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

fmap :: (a -> b) -> LoggerNameBox m a -> LoggerNameBox m b #

(<$) :: a -> LoggerNameBox m b -> LoggerNameBox m a #

MonadFix m => MonadFix (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

mfix :: (a -> LoggerNameBox m a) -> LoggerNameBox m a #

Applicative m => Applicative (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

pure :: a -> LoggerNameBox m a #

(<*>) :: LoggerNameBox m (a -> b) -> LoggerNameBox m a -> LoggerNameBox m b #

liftA2 :: (a -> b -> c) -> LoggerNameBox m a -> LoggerNameBox m b -> LoggerNameBox m c #

(*>) :: LoggerNameBox m a -> LoggerNameBox m b -> LoggerNameBox m b #

(<*) :: LoggerNameBox m a -> LoggerNameBox m b -> LoggerNameBox m a #

MonadIO m => MonadIO (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

liftIO :: IO a -> LoggerNameBox m a #

MonadThrow m => MonadThrow (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

throwM :: Exception e => e -> LoggerNameBox m a #

MonadCatch m => MonadCatch (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

catch :: Exception e => LoggerNameBox m a -> (e -> LoggerNameBox m a) -> LoggerNameBox m a #

MonadMask m => MonadMask (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

mask :: ((forall a. LoggerNameBox m a -> LoggerNameBox m a) -> LoggerNameBox m b) -> LoggerNameBox m b #

uninterruptibleMask :: ((forall a. LoggerNameBox m a -> LoggerNameBox m a) -> LoggerNameBox m b) -> LoggerNameBox m b #

generalBracket :: LoggerNameBox m a -> (a -> ExitCase b -> LoggerNameBox m c) -> (a -> LoggerNameBox m b) -> LoggerNameBox m (b, c) #

Monad m => HasLoggerName (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

CanLog m => CanLog (LoggerNameBox m) Source # 
Instance details

Defined in System.Wlog.CanLog

MFunctor LoggerNameBox Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

Methods

hoist :: Monad m => (forall a. m a -> n a) -> LoggerNameBox m b -> LoggerNameBox n b #

type StM (LoggerNameBox m) a Source # 
Instance details

Defined in System.Wlog.LoggerNameBox

usingLoggerName :: LoggerName -> LoggerNameBox m a -> m a Source #

Runs a LoggerNameBox with specified initial LoggerName.