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
See how the parenthesis are aligned, which is incorrect. The file can be fixed by indenting by 1 space the closing space. I'm unsure about the details of the correct arrow syntax here.
Note that the arrow expression must be multiline to trigger this behavior.
Expected behavior
Ormolu should not fail to format on these arrows syntax.
Environment
OS name + version: linux nixos
Version of the code: ormolu 0.7.7.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to format a multiline arrow expression enclosed with parenthesis, ormolu generates an incorrect result.
To Reproduce
The following file:
Calling
ormolu -i
on it leads to:We can force the result to be written on disk, with
ormolu -i -u
, which leads to:See how the parenthesis are aligned, which is incorrect. The file can be fixed by indenting by 1 space the closing space. I'm unsure about the details of the correct arrow syntax here.
Note that the arrow expression must be multiline to trigger this behavior.
Expected behavior
Ormolu should not fail to format on these arrows syntax.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: