Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Job + vendor
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)
- once :: Vendor up (Unit product) action -> Job up action product
- loop :: Job up action product -> Vendor up (Unit product) action
- loop' :: (forall x. down x -> Job up action x) -> Vendor up down action
Connection
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.