Module

Control.Logger

#Logger

newtype Logger m r

A logger receives records and potentially performs some effects.

Constructors

Instances

#log

log :: forall m r. Logger m r -> r -> m Unit

Log a record to the logger.

#cfilter

cfilter :: forall m r. Applicative m => (r -> Boolean) -> Logger m r -> Logger m r

Transform the logger such that it ignores records for which the predicate returns false.

#hoist

hoist :: forall m m' r. (m ~> m') -> Logger m r -> Logger m' r

Apply a natural transformation to the underlying functor.

Modules