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

Set infixr of 'deepseq' to be consistent with 'seq' #56

Merged
merged 1 commit into from
Jul 19, 2020
Merged

Set infixr of 'deepseq' to be consistent with 'seq' #56

merged 1 commit into from
Jul 19, 2020

Conversation

martijnbastiaan
Copy link
Contributor

Without this patch the following code:

a `deepseq` a : as

gets parsed as

(a `deepseq` a) : as

instead of

a `deepseq` (a : as)

Note that seq already behaves like this.


We had similar problems over at clash-lang/clash-compiler for our Clash-specific version of deepseq causing pretty bad memory leaks.

@chessai
Copy link
Member

chessai commented Jun 20, 2020

So, morally this seems like the right thing to do, but I want to make sure there are no unintended consequences. Can't think of any off the top of my head. CC @haskell/core-libraries-committee

@emilypi
Copy link
Member

emilypi commented Jun 20, 2020

yeah, this is pretty unoffensive to me.

@chessai
Copy link
Member

chessai commented Jun 20, 2020

@martijnbastiaan this needs a changelog entry before merging

@martijnbastiaan
Copy link
Contributor Author

@chessai Sorry for the delay, done!

Without this patch the following code:

    a `deepseq` a : as

gets parsed as

    (a `deepseq` a) : as

instead of

    a `deepseq` (a : as)

Note that infix use of 'seq' already behaves like this.
@chessai chessai merged commit f87570c into haskell:master Jul 19, 2020
@martijnbastiaan martijnbastiaan deleted the infixr-deepseq branch July 19, 2020 07:16
bgamari added a commit that referenced this pull request Apr 16, 2021
This is a breaking change and won't be in deepseq-1.4.

This reverts commit f87570c.
@phadej phadej mentioned this pull request Nov 14, 2021
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.

None yet

3 participants