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

Add getSemigroupUnion, getMonoidUnion and getSemigroupIntersection for Record #3840

Merged

Conversation

FredericEspiau
Copy link
Contributor

@FredericEspiau FredericEspiau commented Oct 25, 2024

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Creates getSemigroupUnion, getMonoidUnion and getSemigroupIntersection for Record

I didn't create anything for difference as I didn't see the point
I didn't ceate a Monoid for intersection as I can't think of a logical empty element (I could do it with some kind of Proxy maybe ?)

Note: I already created a PR similar to this one a loooooong time ago but I messed up the git history so I just recreated a new PR altogether. @gcanti already left some comments that I took into consideration in this new PR. The previous PR was this one: #2635 (don't try to look at the files it makes Github melt)

Related

  • Related Issue #
  • Closes #

Copy link

changeset-bot bot commented Oct 25, 2024

🦋 Changeset detected

Latest commit: 8fb2d08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@effect/typeclass Patch
@effect/printer-ansi Patch
@effect/printer Patch
@effect/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gcanti
Copy link
Contributor

gcanti commented Oct 25, 2024

I didn't ceate a Monoid for intersection as I can't think of a logical empty element

it's fine, it doesn't exist

@gcanti gcanti merged commit 29fc33f into Effect-TS:main Oct 25, 2024
11 checks passed
@github-actions github-actions bot mentioned this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants