polysemy-methodology-co-log-0.1.0.0: Logging functions for polysemy-methodology.
LicenseMIT
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Polysemy.Methodology.Colog

Contents

Description

Domain modelling algebra for polysemy.

Synopsis

Logging

logMethodologyStart Source #

Arguments

:: forall b c p r a. Members '[Methodology b c, Log p] r 
=> (b -> p)

A function from the input type b to an event type p.

-> Sem r a 
-> Sem r a 

Log a type based on the input to a Methodology.

Since: 0.1.0.0

logMethodologyEnd Source #

Arguments

:: forall b c q r a. Members '[Methodology b c, Log q] r 
=> (c -> q)

A function from the input type c to an event type q.

-> Sem r a 
-> Sem r a 

Log a type based on the output to a Methodology.

Since: 0.1.0.0

logMethodologyAround Source #

Arguments

:: forall b c p q r a. Members '[Methodology b c, Log p, Log q] r 
=> (b -> p)

A function from the input type b to an event type p.

-> (c -> q)

A function from the output type b to an event type q,

-> Sem r a 
-> Sem r a 

Log both the start and the end of a Methodology.

Since: 0.1.0.0