-
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
[ refactor ] Change definition of Data.Nat.Base._≤‴_
#2518
Conversation
@tsung-ju Could you please check that your development is compatible with these changes? |
Hi, I tried the new version, and it indeed only breaks in places where I supplied implicit argument to Out of curiosity, is it possible to add an implicit argument to pattern ≤‴-refl {m} = ≤‴-reflexive {m=m} refl but that doesn’t seem to work. |
@tsung-ju thanks very much for doing a smoke test on these changes! I, too, had problems defining a In the meantime, I conjecture that no use of the implicit argument(s) should actually be needed, but I'd be interested to see examples where that is actually necessary... so I am surprised that you did seem to need them, and found the solution to be to explicitly supply them via an inlined version. If you are willing to post them, suggest that you do so on issue #2504 itself (where the design and its behaviour is discussed), rather than this PR (where those are implemented). UPDATED: I did a bit more poking around. It seems that if you do wish to supply UPDATED: Indeed, some more investigation points the way, by way of In the meantime, thanks again, and for the original PR #2503 which prompted these investigations! |
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.
Okay, looks reasonable.
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.
Seems reasonable to me as well - but not pushing 'merge', as 'seems reasonable' feels like too low a bar.
@JacquesCarette this PR and #2523 are individual instances of refactoring along the lines of #2519 , which I took directly from your comments on #2504 . Very happy to pause developments in this direction, but please, comment on #2519 if you have objections to it!? |
I think the changes here are fine, I'm probably uncomfortable because |
Agree that long-term (post-v3.0?) we shouldn't pollute |
Fixes #2504 , following the discussion there and on #2503 , which this also refactors.
Tagged as
breaking
, although the only known use of this relation in the wild is from the OP of #2503 , and theCHANGELOG
documents the only possible (?) source ofbreaking
behaviour, namely supplying implicit arguments to the new pattern synonym for the former non-linear constructor≤‴-refl
. Hence v2.2, not v3.0... but I'm happy to row back on that.