-
Notifications
You must be signed in to change notification settings - Fork 124
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
[New module system] Fixity rebalancing broken #1371
Comments
It seems like this only happens when the operators are defined at the REPL and not in a module. |
I think the problem might with the fixity of operators that are not defined at the top level. For example, this seems to be incorrect also:
The result is 7 (i.e. |
Ok, the issue seems to be here: cryptol/src/Cryptol/ModuleSystem/Binds.hs Lines 157 to 158 in 70d9600
When we are processing the cryptol/src/Cryptol/ModuleSystem/Renamer.hs Lines 174 to 182 in 70d9600
just like the code in cryptol/src/Cryptol/ModuleSystem/Renamer.hs Lines 86 to 87 in cfb1631
because the name binding code treats cryptol/src/Cryptol/ModuleSystem/Binds.hs Lines 302 to 307 in 70d9600
which is actually the other issue that @yav pointed out, if we actually do happen to be defining a local name, then we do not record custom fixities. But currently in cryptol/src/Cryptol/ModuleSystem/NamingEnv.hs Line 378 in cfb1631
So I guess I will open up another issue for that and fix this specific issue for now to behave the same as on |
Fixed in 4b3eac5 |
In #1363
tests/regression/repl-decls.icry
fails because:outputs
instead of what is used to, which was:
After a quick first pass through the renamer, I saw no reason why this PR would break the existing fixity rebalancing (none of the relevant bits seem to be changed) – but I'll be taking a deeper look soon.
The text was updated successfully, but these errors were encountered: