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

Provide NFData1 and NFData2 from Control.DeepSeq #80

Closed
meooow25 opened this issue Jan 1, 2025 · 11 comments
Closed

Provide NFData1 and NFData2 from Control.DeepSeq #80

meooow25 opened this issue Jan 1, 2025 · 11 comments

Comments

@meooow25
Copy link

meooow25 commented Jan 1, 2025

haskell/containers#992 defines NFData1 and NFData2 instances, but they are not available in MicroHs. Could these be added?

@augustss
Copy link
Owner

augustss commented Jan 1, 2025

No. They require the QualifiedConstraints extension, and I have not implemented that yet.

@augustss
Copy link
Owner

augustss commented Jan 1, 2025

For now you'll have to #ifdef out the code for MicroHs.

@meooow25
Copy link
Author

meooow25 commented Jan 1, 2025

Eq1, Eq2, etc. are currently defined, just without the quantified constraints. Could we do the same thing for NFData1?

@augustss
Copy link
Owner

augustss commented Jan 1, 2025

Maybe. I can try, and see what happens.

@augustss
Copy link
Owner

augustss commented Jan 2, 2025

I've added NFData1 and NFData2 and updated my PR to use the updated mhs version.

@meooow25
Copy link
Author

meooow25 commented Jan 4, 2025

mhs: error: "src/Data/Set/Internal.hs": line 246, col 37: not exported: NFData1

It looks they are not exported 😄

@augustss
Copy link
Owner

augustss commented Jan 4, 2025 via email

@meooow25
Copy link
Author

meooow25 commented Jan 4, 2025

Is there a new stable- tag? I'm not seeing it.
If there is one I can just update to it in the NFData1 PR (haskell/containers#992).
(I merged the existing MicroHs PR (haskell/containers#1081) before I saw the problem)

@augustss
Copy link
Owner

augustss commented Jan 4, 2025

There should be a stable-5 tag

@augustss
Copy link
Owner

augustss commented Jan 4, 2025

But I've not put stable-5 in a PR. Maybe you can change it when you try the NFdata1/2 stuff?

@meooow25
Copy link
Author

meooow25 commented Jan 4, 2025

Ah you pushed the fix to the stable-5 branch, I didn't realize.

But I've not put stable-5 in a PR.

You did in haskell/containers#1081.

I re-ran the CI for haskell/containers#992 and it passed, so we're good there. Thank you!

@meooow25 meooow25 closed this as completed Jan 4, 2025
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

No branches or pull requests

2 participants