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

AST differs for quasi-quoted type application #1134

Closed
p4l1ly opened this issue Sep 14, 2024 · 1 comment · Fixed by #1135
Closed

AST differs for quasi-quoted type application #1134

p4l1ly opened this issue Sep 14, 2024 · 1 comment · Fixed by #1135
Labels
bug Something isn't working

Comments

@p4l1ly
Copy link

p4l1ly commented Sep 14, 2024

Describe the bug
The code

foo = foo @[k|bar|]

formats to

foo = foo @ [k|bar|]

which is wrong because @[k|bar|] is a type application but @ [k|bar|] is an operator application.

To Reproduce
Via Ormolu Live.

Expected behavior
Not inserting space after @.

Environment
Version 0.7.7.0, commit 392b2bc, using ghc-lib-parser 9.10.1.20240511

@p4l1ly p4l1ly changed the title Differing AST for quasi-quoted type application AST differs for quasi-quoted type application Sep 14, 2024
@amesgen amesgen added the bug Something isn't working label Sep 14, 2024
@amesgen
Copy link
Member

amesgen commented Sep 14, 2024

Thanks! Fix is in #1135 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants