Skip to content

Commit

Permalink
Note
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Oct 1, 2024
1 parent 80240ea commit 7dcc640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Nixfmt/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ prettyApp indentFunction pre hasPost f a =
group' Transparent (absorbApp True f') <> sep <> nest (group' Priority $ absorbInner a')
where
sep = if nextIsAList then hardline else line
-- Problem: The hardline forces multiple lines even when stuff fits on a single one
-- Something like https://github.com/NixOS/nixfmt/pull/256 should work better
absorbApp _ (Application f' a') =
group' Transparent (absorbApp False f') <> line <> nest (group' Priority $ absorbInner a')
-- First argument
Expand Down

0 comments on commit 7dcc640

Please sign in to comment.