Repository navigation
[ 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} reflbut 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! |
MatthewDaggitt
left a comment
There was a problem hiding this comment.
Okay, looks reasonable.
JacquesCarette
left a comment
There was a problem hiding this comment.
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 theCHANGELOGdocuments the only possible (?) source ofbreakingbehaviour, 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.