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

Support nested update syntax of record-dot-preprocessor #659

Closed
pkapustin opened this issue Oct 2, 2020 · 1 comment · Fixed by #779
Closed

Support nested update syntax of record-dot-preprocessor #659

pkapustin opened this issue Oct 2, 2020 · 1 comment · Fixed by #779

Comments

@pkapustin
Copy link

pkapustin commented Oct 2, 2020

Currently, nested update syntax of record-dot-preprocessor is not supported.
So, something like this company{owner.name = "John"} results in a parse error.

I think it would be nice to support this as the nested update syntax is part of the record dot syntax proposal.
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0282-record-dot-syntax.rst

@neongreen
Copy link
Collaborator

I suppose the GHC AST doesn't allow this, so it might be very tricky

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

Successfully merging a pull request may close this issue.

3 participants