Skip to content
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

Monoid subclasses #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

endgame
Copy link

@endgame endgame commented Sep 29, 2024

Stacked on top of #55, so you can merge that first in case you want to ship that before a release with new features.

reflex-frp/patch#44 is the grand plan to get patch-ish things off DecideablyEmpty and use MonoidNull from monoid-subclasses. Since this PR adds the dep anyway, I filled out all the lawful instances that I could.

Note that there's no instance for LeftGCDMonoid (DMap k f); unlike containers, dependent-map does not provide a mergeWithKey function. I can add one, if you'd like, and add the instance in this PR.

The default `mappend = (<>)` definition appears in `base-4.11`, so
raise the lower bound and regenerate CI.
The implementations of these instances are inspired by the ones from
`Data.Map.Lazy`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant