Add transform and subflatMap to OptionT and XorT#571
Conversation
|
Thanks, @liff! I think you can relax all of the |
Current coverage is
|
|
I'm fine with the names. I agree with @ceedubs that you can relax the constraints. I also think it might be nice to write I'd say you should proceed with the tests and then we can think about how (or if) to make this work for |
|
|
b6be27c to
5d62366
Compare
|
This looks good to me. I think it's good to merge once it gets some tests. I think the lack of consistency of where we are using syntax and where we aren't is a bigger issue that we can tackle separately. It's made a bit trickier by the fact that Machinist and Simulacrum currently don't play together very nicely. Hopefully typeclassic saves the day! :) |
|
Sure, let's leave my syntax suggestion out of this. |
|
Sorry guys, somewhat busy at the moment; going to get back to this later this week. |
|
@liff no worries; no rush. |
723b53c to
053b903
Compare
|
Some tests added. Let me know if that looks sufficient. Implementation for I also feel obliged to add @TomasMikula's comments about |
|
On that note, both |
|
And then so can be |
|
It's still open (at least to me) whether there are interesting monad transformers that are not |
|
👍 I could see |
|
Sorry for the hassle @liff, but could you please resolve the merge conflict? |
053b903 to
d4393aa
Compare
|
Done. |
|
👍 thanks @liff! |
|
Looks good to me. 👍 |
Add transform and subflatMap to OptionT and XorT
As per gitter discussion; proposing to add
transformandsubflatMapmethods toOptionTandXorT. I suppose they should be inStreamingTas well but it's not currently obvious to me how to go about the implementation.TODO:
StreamingT?