-
Notifications
You must be signed in to change notification settings - Fork 242
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
Replace record directive "eta-equality" by "no-eta-equality;pattern" #2476
base: experimental
Are you sure you want to change the base?
Conversation
4d24502
to
8ef8f9a
Compare
8ef8f9a
to
1a5ce5f
Compare
These two commits passed CI when based onto |
Unfortunately, CI does not run anymore since the merge base is not I will have to change it back to master once #2473 has landed: |
Future Agda versions might no longer support eta for unguarded records in `--safe` mode. Dropping eta-equality for constructor _⊐_ only requires changing the order of clauses in ⊞-inj. Re: agda/agda#7470
Future Agda might not allow unguarded record types with eta-equality in `--safe` mode anymore. Re: agda/agda#7470 Switching of eta for `rec` is slightly inconvenient, as was observed already in this issue: agda/agda#840 Allowing it would need improvements to the Agda positivity checker, so that it can recognize `Record` as guarded record that can safely support eta.
1a5ce5f
to
8caaeae
Compare
I reset |
Great, thank you! |
As this is a breaking change, is it possible to wait until we know for sure that Agda will also make the breaking change? |
Yes, let's wait until the Agda side is settled. Commit 91e2c01 seems benign as probably the affected module is used mostly internally in the ring solver tactic. Commit 8caaeae is more invasive and might have larger repercussions on the user of the |
Re: being a |
Further to my comment above: does the change mean (morally) that (inductive) |
Replace record directive
eta-equality
byno-eta-equality; pattern
.Future Agda might not allow unguarded record types with eta-equality in safe mode anymore.
So we switch eta off here, but make the constructor a pattern so that it can still be matched on.
Re: agda/agda#7470