co-log-core-0.1.0: Logging library

Safe HaskellSafe
LanguageHaskell2010

Colog.Core.Class

Description

Provides type class for objects that has access to LogAction.

Synopsis

Documentation

class HasLog env msg m where Source #

This types class contains simple pair of getter-setter.

TODO: laws

Minimal complete definition

getLogAction, setLogAction

Methods

getLogAction :: env -> LogAction m msg Source #

setLogAction :: LogAction m msg -> env -> env Source #

Instances
HasLog (LogAction m msg) msg m Source # 
Instance details

Defined in Colog.Core.Class

Methods

getLogAction :: LogAction m msg -> LogAction m msg Source #

setLogAction :: LogAction m msg -> LogAction m msg -> LogAction m msg Source #

overLogAction :: HasLog env msg m => (LogAction m msg -> LogAction m msg) -> env -> env Source #