Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde committed Feb 26, 2024
1 parent cd708d4 commit 6b9121f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nixfmt/Predoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ layoutGreedy tw doc = Text.concat $ evalState (go [Group RegularG doc] []) (0, [
put (cc + textWidth t, indents) $> [t]
(cc, (ci, vi):indents) | textVI > vi ->
put (cc + textWidth t, (ci, textVI):(ci, vi):indents) $> [t]
(cc, (ci, vi):indents) ->
put (cc + textWidth t, (ci, textVI):indents) $> [t]
(cc, indents) ->
put (cc + textWidth t, indents) $> [t]
(_, _) -> error "unreachable, since indents is guaranteed to not be empty as invariant"
where
-- Start a new line
Expand Down

0 comments on commit 6b9121f

Please sign in to comment.