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

Custom fixities for local bindings #1374

Open
qsctr opened this issue Jun 24, 2022 · 0 comments
Open

Custom fixities for local bindings #1374

qsctr opened this issue Jun 24, 2022 · 0 comments
Labels
bug Something not working correctly language Changes or extensions to the language

Comments

@qsctr
Copy link
Contributor

qsctr commented Jun 24, 2022

Declaring custom fixities for locally defined operators does not work and it behaves as if you did not specify the fixity at all. From #1371:

I think the problem might with the fixity of operators that are not defined at the top level. For example, this seems to be incorrect also:

f = 10 .-. 2 .-. 1
  where
  infixr 5 .-.
  x .-. y = x - y

The result is 7 (i.e. (10 - 2) - 1) but it should be 9 (10 - (2 - 1)).

@qsctr qsctr added bug Something not working correctly language Changes or extensions to the language labels Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something not working correctly language Changes or extensions to the language
Projects
None yet
Development

No branches or pull requests

1 participant