-
-
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
Semigroup for NonEmptyMap is kind of weird #3377
Comments
@djspiewak This issue is actually unrelated to #3380, although I ran into it when I was looking into the other issue (which had to do with |
I guess this would mean deprecating On the other hand seems to me that resolving #3223 first would be good. |
Hi @travisbrown, I had to face this issue and I resolved locally adding the following implicit:
to be used instead of the current implementation that uses cats/core/src/main/scala/cats/data/NonEmptyMapImpl.scala Lines 315 to 317 in f5a6172
|
I've just hit this as well... I'm used to the "deep combine" behavior for |
In any recent Cats version (back to before 2.0)
|+|
is++
for non-empty maps:I don't really use
NonEmptyMap
, so maybe I'm missing something, but this seems like the wrong thing to do, since|+|
for other maps combines at the element level:We can fix this but it'll take some fussing with, since we'll have to make the current
Band
instance non-implicit, add some new prioritized instances, etc.The text was updated successfully, but these errors were encountered: