-
Notifications
You must be signed in to change notification settings - Fork 27
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
Filter out constraint tuple class constructors in hasNoTypeClasses #75
Conversation
Thanks, decent start, I can clean up it a bit before merging. But I’ll wait for the discussion in #74, to see if all your issues can be resolved. |
I'm additionally filtering out |
2384358
to
1df897f
Compare
I've reverted the last change --- it works great with |
Can you do it for the tuples as well? (Mostly curious, it might still be good to do so by default) |
Any idea how to try? I did try adding |
I would have expected the first to work. Nevermind, not that important. |
I don't think I will have any more actionable input for now. Your tool, after patching, helped me manually specialize my code much more, to the point I've discovered a new bug in GHC and/or plugins (https://gitlab.haskell.org/ghc/ghc/-/issues/23866), which makes GHC 9.4 unusable for me. I still have one GHC version that works correctly, GHC 9.2, though it probably doesn't specialize as well --- I can't tell, because I needed to add as exceptions all classes that constrain existential variables, so I can't easily detect failures to eliminate these dictionaries in non-existential contests (the lack of an explicit
BTW, I've also just discovered, using your tool, than GHC 9.8.1-alpha1 specializes worse than GHC 9.4, even in its unsound |
Well, that's at least something :-) |
So, does it have a chance to get merged? :) |
Oh, yes, the CI fails, because I cheated for the old GHCs. :) |
Thank you! |
A rough sketch. I don't know what I'm doing. See #74.