-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests to cover derived methods leftMap and rightMap on BiFunctor #652
Conversation
Add tests to cover derived methods leftMap and rightMap
👍 thanks!
At some point #370 may provide some answers to this. However, until we have something better in place, I think these sorts of checks are good. There is also a precedent here.
Yes, I think so. We would inherit them for free if Simulacrum supported type classes for type constructors of kind |
Current coverage is
|
@ceedubs - Cool, Thanks. I've gone ahead and locally made changes to add leftMap and rightMap to syntax, added associativity checks for leftMap and rightMap, and updated the tests to use the syntax additions. Would you folks prefer pushing to this PR or a separate PR after this one? |
@mikejcurry I have no real preference. I have no objections to you adding those changes to this PR. The more changes you add to a PR the more likely one of them will raise objections, but these seem pretty uncontroversial to me :) |
@ceedubs Sounds good - I'll push the changes to this PR and keep the set of changes in the same area together. |
…ftMap and rightMap composition
👍 |
1 similar comment
👍 |
Add tests to cover derived methods leftMap and rightMap on BiFunctor
This PR would add tests that should cover identity for the derived leftMap and rightMap on BiFunctor.
I guess this PR is exploratory:
Also: