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

LSP formatting breaks definition of custom operators #4682

Closed
andreystepanov opened this issue Feb 9, 2024 · 1 comment · Fixed by #4689
Closed

LSP formatting breaks definition of custom operators #4682

andreystepanov opened this issue Feb 9, 2024 · 1 comment · Fixed by #4689

Comments

@andreystepanov
Copy link

This definition:

(<|>) : Nat -> Nat -> (Nat, Nat)
(<|>) a b = (a, b)

(Custom.<|>) : Nat -> Nat -> (Nat, Nat)
(Custom.<|>) a b = (a, b)

Gets formatted into:

((<|>) : Nat -> Nat -> (Nat, Nat)
a <|> b = (a, b)

((Custom.<|>) : Nat -> Nat -> (Nat, Nat)
a Custom.<|> b = (a, b)

As you can see, there's an extra ( in the beginning of the type-signature.

@ChrisPenner
Copy link
Contributor

Thanks for another report! Should be fixed soon: #4689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants