-
Notifications
You must be signed in to change notification settings - Fork 16
Do not pass deps to mkUnivCo
#88
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
Conversation
Causes GHC load issues for Clash, while seemingly not contributing to anything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These dependencies are critical for type soundness, without them, equalities that only hold locally would be lifted to a global level.
|
Perhaps we can be more diligent as to what givens we add as dependencies. Currently we add all the ones that are in scope when we solve a wanted. We should track perhaps which one of those givens are local and which one are global and only add the local givens as dependencies. |
|
Clear! Thanks for your comments! |
|
Aren't both |
|
They do seem to be local, yeah… could you get GHC debug info with the uniques printed? Because now we only see names, which could be misleading |
|
It's kind of difficult to reliably reproduce the exact output I got earlier, but it looks like I'm having a similar issue in my current run. I'm getting the same error ( Note that the plugin inserts: but |
|
@christiaanb Is this something you'd like to look into? If not that's fine of course, but I don't have a good idea on how to debug this. Are there some flags I can feed to GHC/the plugin to make it output more debug info? |
|
I’ll look into it |
|
Is this still something you're interested in looking into @christiaanb? |
|
I think it's fixed in GHC master by ghc/ghc@9f02dfb; it doesn't seem to be back-ported to the 9.12 branch though: https://github.com/ghc/ghc/blame/ghc-9.12/compiler/GHC/Core/TyCo/Tidy.hs#L346-L348 |
|
Thanks. I'll close this issue. Let's wait for https://gitlab.haskell.org/ghc/ghc/-/issues/26185. |
Causes GHC load issues for Clash, while seemingly not contributing to anything else?
Before this I got an error when upgrading Clash to GHC 9.12:
After digging a little deeper this was "caused" by the introduction of
ipvinselect:https://gist.github.com/martijnbastiaan/8c4d6a753487417f3eefaaca388cc403#file-ghc-9-12-2-hs
Note that I have no idea whether this patch is correct, but it does seem to "solve" my issues on
clash-compiler. I did try to remove either (but not both) of thedepspassing, but they both cause the same error.