Skip to content

Commit 58dd0c9

Browse files
committed
What does this do?
1 parent 7e22758 commit 58dd0c9

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/Nixfmt/Pretty.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,10 @@ absorbRHS expr = case expr of
651651
| isAbsorbable t && isUpdateConcatPlus op ->
652652
nest $ group' RegularG $ line <> pretty l <> line <> group' Transparent (pretty op <> hardspace <> group' Priority (prettyTermWide t))
653653
-- Case 2b: LHS fits onto first line, RHS is a function application
654-
(Operation l (LoneAnn op) (Application f a))
655-
| isUpdateConcatPlus op
656-
&& matchFirstToken (not . hasPreTrivia) f ->
657-
nest $ line <> group l <> line <> prettyApp False (pretty op <> hardspace) False f a
654+
--(Operation l (LoneAnn op) (Application f a))
655+
-- | isUpdateConcatPlus op
656+
-- && matchFirstToken (not . hasPreTrivia) f ->
657+
-- nest $ line <> group l <> line <> prettyApp False (pretty op <> hardspace) False f a
658658
-- Everything else:
659659
-- If it fits on one line, it fits
660660
-- If it fits on one line but with a newline after the `=`, it fits (including semicolon)

test/diff/attr_set/out-pure.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,7 @@
434434

435435
environment.systemPackages =
436436
# Include the PAM modules in the system path mostly for the manpages.
437-
[ package ]
438-
++ lib.optional config.users.ldap.enable pam_ldap;
437+
[ package ] ++ lib.optional config.users.ldap.enable pam_ldap;
439438

440439
environment.systemPackages2 =
441440
# Include the PAM modules in the system path mostly for the manpages.

test/diff/attr_set/out.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@
451451

452452
environment.systemPackages =
453453
# Include the PAM modules in the system path mostly for the manpages.
454-
[ package ]
455-
++ lib.optional config.users.ldap.enable pam_ldap;
454+
[ package ] ++ lib.optional config.users.ldap.enable pam_ldap;
456455

457456
environment.systemPackages2 =
458457
# Include the PAM modules in the system path mostly for the manpages.

0 commit comments

Comments
 (0)