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
Currently, behaviour deviates from Ormolu (with this config) in the following ways:
Stop operators from being indented past do. #6: Changes a specific rare edge case (do block as the left operand of an infix operator), where Ormolu + 4-space indentation causes an unsafe formatting (modified AST).
Replicating Ormolu's behaviour here would be possible. The implementation would just get very messy. Besides, we still have the property that we won't modify code which has already been formatted by Ormolu. And I'm admittedly a bit ambivalent because I really can't see the argument for replacing multi-line comments with multiple single-line ones in the first place.
Fix nested lists etc. #37: The fact that we round down upon indenting means that some lines which wouldn't start in an even column with Ormolu do with Fourmolu. I'm yet to find an example of this which looks like code any human would actually write.
Each of these changes has elements which it may be worth at least attempting to upstream.
The text was updated successfully, but these errors were encountered:
Currently, behaviour deviates from Ormolu (with this config) in the following ways:
do
. #6: Changes a specific rare edge case (do
block as the left operand of an infix operator), where Ormolu + 4-space indentation causes an unsafe formatting (modified AST).single-line
mode, we don't insert leading spaces:Each of these changes has elements which it may be worth at least attempting to upstream.
The text was updated successfully, but these errors were encountered: