fromLeft and fromRight#683
Conversation
|
This pull request contains a subset of the changes proposed in #644. This pull request does not change the behaviour of |
3541fc4 to
e52d5ed
Compare
|
@ryanbas21, as you may or may not be aware, #644 was open at the time you made your additions. That pull request has already been reviewed and discussed, and includes documentation. It makes sense to reuse @futpib's work rather than reproduce it, so I cherry-picked one of the commits and reverted the changes to @futpib, I hope you are comfortable with me modifying one of your commits. @ryanbas21, I hope you are comfortable with me commandeering your pull request. |
9b294d1 to
ec92fe5
Compare
Co-authored-by: David Chambers <dc@davidchambers.me>
b7fbca2 to
03451b0
Compare
Forgot why I never opened this, but I can't see a reason to not push it forward. Let me know if there is anything you'd like me to add / change etc.
Summary of changes: Add functionality of
fromLeftandfromRightfromLeft :: a -> Either a b -> afromRight :: b -> Either a b -> b