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

SupplyChain.Core.Effect

Description

 
Synopsis

Type

data Effect up action product Source #

Constructors

Request (up product) 
Perform (action product) 

Running

run Source #

Arguments

:: Effect (Const Void) action product

An effect that makes no requests

-> action product 

absurd Source #

Arguments

:: Effect (Const Void) (Const Void) x

There are values of this type.

-> product 

Alteration

alterRequest Source #

Arguments

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

Modification to requests

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

alterPerform Source #

Arguments

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

Modification to actions

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