-
Notifications
You must be signed in to change notification settings - Fork 454
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
MonadError Laws #122
MonadError Laws #122
Conversation
Codecov Report
@@ Coverage Diff @@
## master #122 +/- ##
========================================
Coverage ? 55.5%
Complexity ? 198
========================================
Files ? 80
Lines ? 1171
Branches ? 167
========================================
Hits ? 650
Misses ? 453
Partials ? 68
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass with nit. Happy to discuss.
@@ -1,6 +1,6 @@ | |||
package kategory | |||
|
|||
class EitherMonad<L> : Monad<EitherF<L>> { | |||
open class EitherMonad<L> : Monad<EitherF<L>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather it used delegation rather than inheritance like in here: https://github.com/kategory/kategory/blob/master/kategory/src/main/kotlin/kategory/instances/Composed.kt#L39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, we can do a pass to redo all of them if this makes sense. Let's discuss by chat.
* add std kotlin instances test * add java instances test * add arrow instances test * format * allow missing key for None fields * code clean up * format * add instances bad cases * add instances java time bad cases * add instances java bad cases * add instances collections bad cases * add instances arrow bad cases * fix some decoders according to test spectations * merge master * wip more code cleanup * format and clean up * Simplify optics internals * make functions private
* Maintain `Traverse` and `TraverseFilter` documents * Modify a sentence
Includes tests and instances for Try and Either