-
Notifications
You must be signed in to change notification settings - Fork 238
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
Problem with DISPLAY
pragma for ⊥
in Data.Empty
#2493
Comments
Hmm, this is very irritating. It's a big usability loss to remove the DISPLAY pragma... I really don't want Introduced by @gallais in 367e3d6. Can't exactly revert this either, as it'll break a lot of code. @gallais any ideas? Could we use the new |
This is what I was going to suggest we should experiment with. However the following does not typecheck and so it does seem that Agda's emptyness check
I've commented on an upstream issue bringing up a similar issue for positivity annotations: |
Andreas has reopened my originating issue, so there may be upstream progress at some point agda/agda#7536 ... in the meanwhile, Separately, he hinted that perhaps |
As for pragmatics of the problem, I only encountered it when trying to have |
Prompted by this issue, Agda 2.8 might have more usable This should fix your problem (albeit not right now). |
That's great, thank you! So I guess we mark this issue as blocked upstream and wait for the fix. |
Agda issue#7533 and its 'resolution'/explanation via Agda issue#2004 suggests that perhaps we should rethink our approach to how to deal lexically with the
⊥
token (for output as well as input)? Or else (at least!) document thatData.Irrelevant
should be approached with caution...Sadly,
syntax
declarations are subject to the same, or similar, effects, so attempting to writeis both ill-formed (the 'hole'
Empty
is never used), and useless (Empty
is not correctly interpreted as a already-defined term).Perhaps a solution is simply to remove the
DISPLAY
pragma altogether?UPDATED: NB. this is the only use of the pragma in
stdlib
!The text was updated successfully, but these errors were encountered: