Skip to content

Invalid formatting with type synonym and comment #448

@judah

Description

@judah

Input:

module M where

-- | A

-- B
type D = E

Output:

module M where

-- | A
type -- B
D = E

Error:

Parsing of formatted code failed:
  <input><rendered>:5:1
  parse error (possibly incorrect indentation or mismatched brackets)
Please, consider reporting the bug.

And with data, it's indented correctly:

module M where

-- | A
data -- B
  D = E

Metadata

Metadata

Assignees

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