Skip to content

Fix the Semigroup instance for Foreign.Object.Object #19

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

Merged

Conversation

kl0tl
Copy link
Member

@kl0tl kl0tl commented Nov 24, 2020

The Semigroup instance for Foreign.Object.Object currently appends values from the right to values from the left: singleton k a <> singleton k b is equivalent to singleton k (b <> a) and not to singleton k (a <> b) as expected.

The Semigroup instance for Foreign.Object.Object currently appends values from the right to values from the left: `singleton k a <> singleton k b` is equivalent to `singleton k (b <> a)` and not to `singleton k (a <> b)` as expected.
@hdgarrood
Copy link
Contributor

It's unfortunate that this is breaking but I agree that it's hard to argue in favour of the current behaviour. I think if people were intentionally using it, they probably would have opened an issue asking whether this was really meant to work this way.

@thomashoneyman thomashoneyman merged commit 4c94d02 into purescript:master Dec 26, 2020
@kl0tl kl0tl mentioned this pull request Dec 28, 2020
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.

3 participants