co-log-core-0.1.1: Composable Contravariant Comonadic Logging Library

Safe HaskellNone
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

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 #