Skip to content

Format type applications of QuasiQuotes correctly#1135

Merged
mrkkrp merged 1 commit intomasterfrom
amesgen/issue-1134
Sep 17, 2024
Merged

Format type applications of QuasiQuotes correctly#1135
mrkkrp merged 1 commit intomasterfrom
amesgen/issue-1134

Conversation

@amesgen
Copy link
Copy Markdown
Contributor

@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.

@github-actions
Copy link
Copy Markdown

@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
@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