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

Necessary braces in the left hand side of : are removed #780

Closed
buggymcbugfix opened this issue Sep 22, 2021 · 0 comments · Fixed by #789
Closed

Necessary braces in the left hand side of : are removed #780

buggymcbugfix opened this issue Sep 22, 2021 · 0 comments · Fixed by #789
Labels
bug Something isn't working

Comments

@buggymcbugfix
Copy link

buggymcbugfix commented Sep 22, 2021

$ cat haskell/repro.hs
foo c = case c of {_->c} : []

$ ormolu haskell/repro.hs
haskell/repro.hs
  AST of input and AST of formatted code differ.
    at haskell/repro.hs:1:9-29
  Please, consider reporting the bug.

$ ormolu --version
ormolu 0.3.0.0 HEAD 06b767c8b70e60321a4debc4599127446f958e5b
using ghc-lib-parser 9.0.1.20210324
@amesgen amesgen added the bug Something isn't working label Sep 22, 2021
@amesgen amesgen changed the title Roundtrip bug Necessary braces in the left hand side of : are removed Sep 22, 2021
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