supply-chain-0.0.1.0: Composable request-response pipelines
Safe HaskellSafe-Inferred
LanguageGHC2021

SupplyChain.Alter

Description

Functions for modifying requests and actions

Synopsis

General

job Source #

Arguments

:: (forall x. Effect up action x -> Job up' action' x)

Transformation applied to each effect that the job evokes

-> Job up action product 
-> Job up' action' product 

vendor Source #

Arguments

:: (forall x. Effect up action x -> Job up' action' x)

Transformation applied to each effect that the vendor evokes

-> Vendor up down action 
-> Vendor up' down action' 

request Source #

Arguments

:: (up product -> Effect up' action product)

Transformation applied if the effect is a request

-> Effect up action product 
-> Effect up' action product 

perform Source #

Arguments

:: (action product -> Effect up action' product)

Transformation applied if the effect is an action

-> Effect up action product 
-> Effect up action' product 

Simplified

job' Source #

Arguments

:: (forall x. Effect up action x -> Effect up' action' x)

Transformation applied to each effect that the job evokes

-> Job up action product 
-> Job up' action' product 

vendor' Source #

Arguments

:: (forall x. Effect up action x -> Effect up' action' x)

Transformation applied to each effect that the vendor evokes

-> Vendor up down action 
-> Vendor up' down action' 

request' Source #

Arguments

:: (up product -> up' product)

Transformation applied if the effect is a request

-> Effect up action product 
-> Effect up' action product 

perform' Source #

Arguments

:: (action product -> action' product)

Transformation applied if the effect is an action

-> Effect up action product 
-> Effect up action' product