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

Haddock comment in single line export list breaks format #1051

Open
brandonchinn178 opened this issue Jul 2, 2023 · 0 comments
Open

Haddock comment in single line export list breaks format #1051

brandonchinn178 opened this issue Jul 2, 2023 · 0 comments
Labels
bug Something isn't working comments Issues related to comment placement

Comments

@brandonchinn178
Copy link
Collaborator

Describe the bug
A multiline haddock in a single line export list incorrectly changes to a single line haddock comment.

To Reproduce

module Foo ({- | asdf -} foo) where

Currently, formatting this with --unsafe returns:

module Foo (-- | asdf foo) where

Expected behavior
Should reformat to

module Foo
  ( -- | asdf
    foo
  ) where

or stay with multiline haddock

Environment

  • OS name + version:
  • Version of the code:

Additional context
Add any other context about the problem here.

@amesgen amesgen added bug Something isn't working comments Issues related to comment placement labels Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comments Issues related to comment placement
Projects
None yet
Development

No branches or pull requests

2 participants