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

Invalid formatting with type synonym and comment #448

Closed
judah opened this issue Nov 4, 2019 · 2 comments · Fixed by #462
Closed

Invalid formatting with type synonym and comment #448

judah opened this issue Nov 4, 2019 · 2 comments · Fixed by #462
Assignees
Labels
bug Something isn't working

Comments

@judah
Copy link

judah commented Nov 4, 2019

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
@mrkkrp
Copy link
Member

mrkkrp commented Nov 4, 2019

This is another form of the same problem as #440.

@mrkkrp mrkkrp added the bug Something isn't working label Nov 4, 2019
@mrkkrp
Copy link
Member

mrkkrp commented Nov 19, 2019

Just to be clear: the Haddock -- | A is probably not associated with the type declaration, so there is a problem in the input. That said, it should be handled better.

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