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

Correctly format duplicate fields #2037

Merged
merged 2 commits into from
Sep 13, 2020
Merged

Conversation

Gabriella439
Copy link
Collaborator

Fixes #2032

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.

LGTM!

Comment on lines +2 to +4
, foo.baz
= {- Comments within values are still preserved-}
2
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is unrelated to this PR, but makes me realize that maybe the = should rather be on the same line as the dotted fields:

Suggested change
, foo.baz
= {- Comments within values are still preserved-}
2
, foo.baz =
{- Comments within values are still preserved-}
2

Having the = below the keys is IMHO mostly warranted when the keys are spread over several lines and especially when the last key has a trailing comment, e.g.

{ k
  {- bla -}
  = v
}

Thoughts? (We can move this discussion to a separate issue though.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@sjakobi: It should probably be a separate issue. I try to keep changes logically separate if possible

Copy link
Collaborator

Choose a reason for hiding this comment

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

I opened #2051 to track this.

@mergify mergify bot merged commit cfd2894 into master Sep 13, 2020
@mergify mergify bot deleted the gabriel/resugar_chained_fields branch September 13, 2020 16:47
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 of plain record produces operator (/\) merge
2 participants