Skip to content

Fix precedence of the import alt operator #1460

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

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

basile-henry
Copy link
Collaborator

closes #1455

@basile-henry basile-henry self-assigned this Oct 22, 2019
@basile-henry basile-henry requested a review from sjakobi October 22, 2019 23:38
Copy link
Collaborator

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

It seems that in order to fix all the precedence issues (#1457), we'll have to have one precedenceXExpression per operator, right?

Eventually we should probably also add these test cases to the acceptance test suite.

@mergify mergify bot merged commit 3c99d5c into master Oct 23, 2019
@mergify mergify bot deleted the dhall-format-precedence-import-alt branch October 23, 2019 01:20
@Gabriella439
Copy link
Collaborator

@sjakobi: Yeah, the reason it's grouped like that is a performance optimization since you only run into expressions with the wrong precedence if they are ill-typed expressions

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

Successfully merging this pull request may close these issues.

dhall format gets the precedence of ? and || wrong
3 participants