-
-
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
2228-add MonadError instance for optionT where F is a Monad #2299
2228-add MonadError instance for optionT where F is a Monad #2299
Conversation
@@ -287,6 +290,29 @@ private[data] trait OptionTMonad[F[_]] extends Monad[OptionT[F, ?]] { | |||
))) | |||
} | |||
|
|||
private[data] trait OptionTMonadErrorMonad[F[_]] extends MonadError[OptionT[F, ?], Unit] { |
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.
Wondering if it'd be possible to extend OptionTMonad[F]
here to reduce duplication (like the trait below does).
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 see.. You are right. I should have mixin OptionTMonad[F]
. Changing it..
Codecov Report
@@ Coverage Diff @@
## master #2299 +/- ##
==========================================
+ Coverage 95.05% 95.06% +<.01%
==========================================
Files 338 338
Lines 5850 5860 +10
Branches 220 221 +1
==========================================
+ Hits 5561 5571 +10
Misses 289 289
Continue to review full report at Codecov.
|
related to #2228