You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not sure if the AST would allow us to do this, but it would be great if this formatting of comment placement was preserved by ormolu:
if something
-- then commentthendo
stuff
stuff
-- else commentelsedo
stuff
stuff
When formatted, this looks like
if something
then-- then commentdo
stuff
stuff
else-- else commentdo
stuff
stuff
One workaround is to place comments at the top of each alternative, which is okay, but seems a little less natural.
if something
thendo-- then comment
stuff
stuff
elsedo-- else comment
stuff
stuff
Thanks!
The text was updated successfully, but these errors were encountered:
mrkkrp
added
style
Nitpicking and things related to purely visual aspect for formatting.
comments
Issues related to comment placement
labels
Mar 7, 2023
Hi, I'm not sure if the AST would allow us to do this, but it would be great if this formatting of comment placement was preserved by ormolu:
When formatted, this looks like
One workaround is to place comments at the top of each alternative, which is okay, but seems a little less natural.
Thanks!
The text was updated successfully, but these errors were encountered: