| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
SupplyChain.Core.Connect
Contents
Description
Synopsis
- (>-) :: Vendor up down action -> Job down action product -> Job up action product
- (>+) :: Vendor up down action -> Job down action product -> Job up action (Referral up down action product)
- (>->) :: Vendor up middle action -> Vendor middle down action -> Vendor up down action
- joinReferral :: Referral up middle action (Referral middle down action product) -> Referral up down action product
Vendor to job
Arguments
| :: Vendor up down action | Upstream |
| -> Job down action product | Downstream |
| -> Job up action product |
Modify a job with a vendor that interprets its requests
Arguments
| :: Vendor up down action | Upstream |
| -> Job down action product | Downstream |
| -> Job up action (Referral up down action product) |
Connect a vendor to a job, producing a job which returns both the product and a new version of the vendor.
Use this function instead of (>-) if you need to attach a succession
of jobs to one stateful vendor.
Vendor to vendor
Arguments
| :: Vendor up middle action | Upstream |
| -> Vendor middle down action | Downstream |
| -> Vendor up down action |
Connect two vendors; the first interprets requests made by the second