Deferred with different effects for source and sink - #1583
Conversation
|
Also, I'm unsure about the following:
|
|
My 2c: Let's see what others think :) |
|
There is no need for |
|
yeah sorry, I was thinking "see if it can be done without relying on effect capture", but that's a pointless requirement since |
|
It's a cool generalization, but it definitely feels like a much higher degree of complexity. I think if this were just a separate thing in the std lib then I'd be in favor of making a generalized |
This generalizes
Deferredto allow different effects for itsDeferredSourceandDeferredSinkparts. So instead ofDeferred[F, A]we could haveDeferred2[F, G, A], which we cangetinFandcompleteinG.This is a work in progress. If the general idea is acceptable, I'll work on at least the following:
Deferred2,in2, ...); I'm open to suggestions.