Skip to content

AST differs for quasi-quoted type application #1134

@p4l1ly

Description

@p4l1ly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions