-
Notifications
You must be signed in to change notification settings - Fork 81
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
Comment in empty export list moved out #906
Comments
amesgen
added
style
Nitpicking and things related to purely visual aspect for formatting.
comments
Issues related to comment placement
labels
Jul 11, 2022
@amesgen hm this seems to break with block comments:
module Foo
( {- asdf -}
)
where
module Foo
{- asdf -}(
)
where
module Foo
{- asdf -} (
)
where It's also a bit unfortunate that styling drastically changes when there is an export or not:
module Foo
( -- asdf
asdf,
)
where
module Foo
(
-- asdf
)
where |
Thanks, that is unfortunate, I will have a look at this, especially as your PR #933 handles this properly. For some context from my POV:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
gets reformatted to
Related: #901
To Reproduce
Expected behavior
It should keep the comment in the export list
Environment
Additional context
This isn't an issue if there's anything in the export list, before or after the comment. So it's normally not an issue, since one usually exports at least one thing. But it's messing up my new library, which generates an export item at the spot specified by the comment. I currently workaround with a hack involving named sections, which is fine for my purposes, since haddocks aren't generated for tests:
https://github.com/brandonchinn178/tasty-autocollect/blob/f4890360a4870d2740e01d2c54f424b07c0ef88d/test/Test/Tasty/Ext/TodoTest.hs#L5
The text was updated successfully, but these errors were encountered: