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

Breaking template haskell #973

Open
constrictorum opened this issue Oct 11, 2024 · 1 comment
Open

Breaking template haskell #973

constrictorum opened this issue Oct 11, 2024 · 1 comment
Assignees

Comments

@constrictorum
Copy link

Problem

Description of problem here.

When using the polysemy package in Haskell and formatting code in VS Code, the formatter adds a $ symbol to the makeSem function, making the code invalid. This occurs when the makeSem function is used without arguments, for example: makeSem ''ModFiles.

It's the same with the deriveJSON generator from aeson

Input haskell

makeSem ''MyData
deriveJSON

Expected output haskell

makeSem ''MyData
deriveJSON

Actual output haskell

$makeSem ''MyData
$deriveJSON
@constrictorum
Copy link
Author

hindent version 6.1.1, ghc 9.6.6

@toku-sa-n toku-sa-n self-assigned this Oct 11, 2024
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

No branches or pull requests

2 participants