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

Preserve parentheses when formatting field access of an import #471

Merged
merged 4 commits into from
Jun 15, 2018

Conversation

Gabriella439
Copy link
Collaborator

Fixes #453

This updates the pretty-printing logic to match the precedence of the grammar.

The immediate motivation for this is to ensure that dhall format doesn't
remove parentheses around an import being accessed like a record, which would
leave behind invalid Dhall code.

Fixes #453

This updates the pretty-printing logic to match the precedence of the grammar.

The immediate motivation for this is to ensure that `dhall format` doesn't
remove parentheses around an import being accessed like a record, which would
leave behind invalid Dhall code.
@Gabriella439 Gabriella439 merged commit cf9b08a into master Jun 15, 2018
@Gabriella439 Gabriella439 deleted the gabriel/update_pretty branch June 15, 2018 15:38
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

Successfully merging this pull request may close these issues.

1 participant