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

Format type applications of QuasiQuotes correctly #1135

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

amesgen
Copy link
Member

@amesgen amesgen commented Sep 14, 2024

Closes #1134

This PR basically reverts #616 (but keeps the tests that were added there), which was necessary back then, but no longer is due to GHC proposal 229 ("Whitespace-sensitive operator parsing").

Concretely, the example from #613/#616

sing @ $(symFQN name)

is nowadays always parsed as an application of the (value-level) operator @ to two value-level arguments, in contrast to a type application back then (when TypeApplications was enabled). Hence, we don't need to handle anything specially here by inserting extra spaces.

This fixes the bug because HsSpliceTy is also used to represent QuasiQuotes.

Copy link

@github-actions github-actions bot temporarily deployed to pull request September 14, 2024 12:25 Inactive
@mrkkrp mrkkrp merged commit 1466261 into master Sep 17, 2024
10 checks passed
@mrkkrp mrkkrp deleted the amesgen/issue-1134 branch September 17, 2024 19:56
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.

AST differs for quasi-quoted type application
3 participants