Skip to content

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

@buggymcbugfix

Description

@buggymcbugfix
$ 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

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