Introduce Bifunctor Laws#559
Conversation
- Create BifuncorLaws - Create BifunctorTests - Add Bifunctor instances for Validated, Ior, Xor, and XorT - Add Bifunctor tests for Validated, Ior, Xor, and XorT Fixes: 557
Current coverage is
|
|
Thanks! This looks good to me. 👍 |
There was a problem hiding this comment.
Sorry, this is super nitpicky, but could you name this iorBifunctor just to match the convention of the instances above it?
There was a problem hiding this comment.
Similarly for the instances in the other files.
|
Other than my super nitpicky comment, this looks good. 👍 |
There was a problem hiding this comment.
Could you also remove the parens from f and g? If functions have only one parameter we usually omit them.
|
Also LGTM. |
- Removed unnecessary parens - Renamed methods to match the convention
|
Fixed, and sorry about those. I should have noticed the naming and I never use parens like that (going to blame the IDE and the fact that it was after 2am). |
|
Merging, thanks! |
|
@agenovese no worries. What you had was completely fine! I'm just nitpicky :P |
Fixes: 557