-
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
Ormolu drops a Haddock section header in module export #901
Comments
I note that module Beckhoff.ADS
( -- $intro
-- * Connections
ConnectInfo(..)
) where works, so I do have a workaround. |
Hmm, I think that Ormolu's output is actually "Haddock-preserving" here. Consider these rendered Haddock outputs
So while I agree it is surprising, maybe Ormolu's behavior is actually helpful as it only mirrors the Haddock behavior of removing everything after |
Ah, interesting. That said, I do find Ormolu makes it easy to now just lose the comment entirely if you're not careful reading the diff |
Agreed; so we basically have two options:
|
All that said, this looks fishy to me. It is true that in the original input |
Okay, now I see what @amesgen meant. Somewhat surprisingly |
Describe the bug
The following code
becomes
Note that
* Connections
is no longer in the result.To Reproduce
Try formatting the "before" code in https://ormolu-live.tweag.io/.
Expected behavior
Both
$intro
and* Connections
are present in the formatted result.Environment
Ormolu live
The text was updated successfully, but these errors were encountered: