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

Incorrect formatting of type-level cons operator ': #84

Open
constrictorum opened this issue Oct 3, 2024 · 0 comments
Open

Incorrect formatting of type-level cons operator ': #84

constrictorum opened this issue Oct 3, 2024 · 0 comments

Comments

@constrictorum
Copy link

I'm experiencing an issue with Floskell where the type-level cons operator ': is not being formatted correctly. Specifically, when I use the operator in a type signature, the apostrophe is being stuck to the preceding identifier, rather than being separated by a space.

I've tried adding the --extensions=TypeOperators flag to the Floskell configuration, but it didn't make a difference. I've also checked the Floskell documentation, but couldn't find any mention of this issue.

Here's an example of the code that's not being formatted correctly:

runModPortal ::
  (Members '[Embed IO, Error PortalError] r) => -- formatted correctly
  Sem (ModPortal ': r) a -> -- apostrophe stuck to ModPortal
  Sem r a

I'm using the Haskell.haskell extension for VS Code, which comes with Floskell as its formatting engine. I'm not sure if this issue is specific to the VS Code integration or if it's a general Floskell issue.

I'd appreciate it if someone could take a look at this issue and provide a solution or workaround. Thank you!

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

1 participant