Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
Modify a job with a vendor that interprets its requests
:: 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
Connect two vendors; the first interprets requests made by the second