Experiment: convert any CE effect type to a bifunctor effect#1766
Experiment: convert any CE effect type to a bifunctor effect#1766neko-kai wants to merge 5 commits into
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #1766 +/- ##
===========================================
- Coverage 65.39% 63.59% -1.80%
===========================================
Files 557 479 -78
Lines 11061 9636 -1425
Branches 0 491 +491
===========================================
- Hits 7233 6128 -1105
+ Misses 3828 3508 -320 |
|
Would it be possible to generalize this even further? Namely, given any monofunctor Repeat that for all conversions in |
|
@mucaho |
be4d382 to
6dda1f0
Compare
|
Great to see this is still being worked on, thanks! While this was being worked on, I have created my own two conversions I needed in the meantime, not sure if they are completely sound though, in case anyone needs: https://bitbucket.org/mucaho/ceffbanx/src/8986109fb7e9e97c7ae5a71ba311ff9d915634b8/src/main/scala/org/bitbucket/mucaho/ceffbanx/Util.scala#lines-130:180 |
|
cats-mtl added "submarine error handling" in similar vein - typelevel/cats-mtl#619 associated blogpost |
|
NB: nesting of handlers may not be relevant for bifunctorization. But distinguishing between different bifunctorized effect types may be. (we could just use TagK instead of path-dependency?) |
Seems to be working: cats-effect laws pass, but there may still be problems they don't reveal