Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde committed Feb 6, 2024
1 parent 7b1fcf5 commit 534e2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nixfmt/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ instance Pretty Expression where
-- not chainable binary operators: <, >, <=, >=, ==, !=
pretty (Operation a op@(Ann _ op' _) b)
| op' == TLess || op' == TGreater || op' == TLessEqual || op' == TGreaterEqual || op' == TEqual || op' == TUnequal
= pretty a <> softline <> pretty op <> hardspace <> pretty b
= group $ pretty a <> group' RegularG (line <> pretty op <> hardspace <> pretty b)
-- all other operators
pretty operation@(Operation _ op _)
= let
Expand Down

0 comments on commit 534e2b0

Please sign in to comment.