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

The haddock of the first method of a class declaration is located in the wrong place #607

Closed
2 tasks done
toku-sa-n opened this issue Nov 6, 2022 · 0 comments · Fixed by #706
Closed
2 tasks done

Comments

@toku-sa-n
Copy link
Collaborator

Problem

Description of problem here.

  • I checked the issue tracker for existing issues about this problem.
  • I'm using the latest version of hindent.

Input haskell

class Foo a where
  -- | Doc
  foo :: a

Expected output haskell: same as the input

Actual output haskell

class Foo a
  -- | Doc
  where
  foo :: a
toku-sa-n added a commit to toku-sa-n/hindent that referenced this issue Apr 19, 2023
mihaimaruseac pushed a commit that referenced this issue Apr 21, 2023
* Add a test for #607

* Fix

* Format

* Do not remove an empty line

* Avoid name overlapping

* Extract the common part

* Remove an unnecessary import

* Add a changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant