-
Notifications
You must be signed in to change notification settings - Fork 529
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
Fix SemigroupK[Resource[F, *]].combineK #1030
Fix SemigroupK[Resource[F, *]].combineK #1030
Conversation
…nsistent with MonadError[Resource[F, *], E].orElse
It seems my implementation is not binary compatible. |
Ah! So the trick to appease the MiMa gods here is to take the old method, remove the |
@djspiewak oh good to know, I will make the change. BTW, what do you think about the tests? |
Well, it's still going to produce the same runtime behavior. You can't call the new implementation from the old signature, so you just have to keep the old implementation around, but hidden behind the If we were in the situation you described, I definitely would need to be sure it was a bugfix. :-)
I think it's definitely worth adding some tests. It doesn't entirely surprise me that the behavior was previously untested, since I feel like anyone writing such a test would realize how silly the semantics were. |
Changing the behavior of SemigroupK[Resource[F, *]].combineK to be consistent with MonadError[Resource[F, *], E].orElse
Fixes #949
I am surprised I didn't have to change any test (this is probably a sign that there was no reason for the previous behavior).
Should I add some tests for the current behavior?
BTW, I confirmed it worked as expected using the snippet posted in the original issue.