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
Yes, I've verified that Ormolu does not have this bug
Describe the bug #255 made it so that a leading space in single line comments don't count as part of a comment, but it causes "AST of input and AST of formatted code differ" on indented haddocks:
{- | Test 3 spaces before this line-}foo::Int
I assume this is because {- -} haddocks are all included as one long "Test\n\n 3 spaces before this line" string and we don't ignore leading whitespace after newline characters
For now, a workaround is to put the first line on the next line. No idea why this works.
{- |Test 3 spaces before this line-}foo::Int
The text was updated successfully, but these errors were encountered:
Is your bug specific to Fourmolu?
Describe the bug
#255 made it so that a leading space in single line comments don't count as part of a comment, but it causes "AST of input and AST of formatted code differ" on indented haddocks:
I assume this is because
{- -}
haddocks are all included as one long"Test\n\n 3 spaces before this line"
string and we don't ignore leading whitespace after newline charactersFor now, a workaround is to put the first line on the next line. No idea why this works.
The text was updated successfully, but these errors were encountered: