Skip to content
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

General precedence rule #20

Closed
favonia opened this issue Mar 5, 2015 · 2 comments
Closed

General precedence rule #20

favonia opened this issue Mar 5, 2015 · 2 comments

Comments

@favonia
Copy link
Contributor

favonia commented Mar 5, 2015

The upcoming Agda 4.3 no longer has a default fixity/precedence for operators and syntax (which was infix 20 and infix -666, respectively, I believe). In order to make the current code compile we need to put in many fixity/precedence declarations. I would like to take this opportunity to propose the following general rules for precedence:

  1. Separators _$_ and arrows: 0
  2. Layout combinators (equational reasoning): 10-15
  3. Equalities, equivalences: 30
  4. Other relations, operators with line-level separators: 40
  5. Constructors (for example _,_): 60
  6. Binary operators (including type formers like _×_): 80
  7. Prefix operators: 100
  8. Postfix operators: 120

Any suggestions or comments?

@favonia favonia changed the title Fixity General precedence rule Mar 5, 2015
@andrejbauer
Copy link
Member

Yes, multiply all numbers in your list by 10.

@favonia
Copy link
Contributor Author

favonia commented Mar 27, 2015

I am going to implement this with @andrejbauer's suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants