Skip to content

Monoid subclasses - #56

Open
endgame wants to merge 3 commits into
obsidiansystems:masterfrom
endgame:monoid-subclasses
Open

Monoid subclasses#56
endgame wants to merge 3 commits into
obsidiansystems:masterfrom
endgame:monoid-subclasses

Conversation

@endgame

@endgame endgame commented Sep 29, 2024

Copy link
Copy Markdown
Contributor

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 implementations of these instances are inspired by the ones from
`Data.Map.Lazy`.
@endgame

endgame commented May 13, 2025

Copy link
Copy Markdown
Contributor Author

Has anyone had a chance to look at this?

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.

2 participants