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

Parser groups application more tightly than record completion. #104

Closed
mattpolzin opened this issue Oct 8, 2023 · 0 comments · Fixed by #107
Closed

Parser groups application more tightly than record completion. #104

mattpolzin opened this issue Oct 8, 2023 · 0 comments · Fixed by #107

Comments

@mattpolzin
Copy link
Collaborator

If you have a Union variant applied to a record completion, Idrall currently parses it as the application of the Union constructor to the name of the record type instead of applying the Union constructor to the result of the record completion.

Here's an example that is valid Dhall but fails to parse correctly in Idrall:

let Ty = { Type = { name : Text }, default = { name = "hello world" } }
let Opts = < One : Ty.Type | Two>
in Opts.One Ty::{=}
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 a pull request may close this issue.

1 participant