From 07d745615819279b292f467c55d59e9eea91619f Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Mon, 1 Dec 2025 09:38:41 -0600 Subject: [PATCH] fold -> foldr --- snowfall-lib/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snowfall-lib/default.nix b/snowfall-lib/default.nix index cf515f2..25c815f 100644 --- a/snowfall-lib/default.nix +++ b/snowfall-lib/default.nix @@ -24,7 +24,7 @@ let fix filterAttrs mergeAttrs - fold + foldr recursiveUpdate callPackageWith isFunction @@ -34,13 +34,13 @@ let # Type: [Attrs] -> Attrs # Usage: merge-deep [{ x = 1; } { x = 2; }] # result: { x = 2; } - merge-deep = fold recursiveUpdate { }; + merge-deep = foldr recursiveUpdate { }; # Merge the root of a list of attribute sets. # Type: [Attrs] -> Attrs # Usage: merge-shallow [{ x = 1; } { x = 2; }] # result: { x = 2; } - merge-shallow = fold mergeAttrs { }; + merge-shallow = foldr mergeAttrs { }; # Transform an attribute set of inputs into an attribute set where # the values are the inputs' `lib` attribute. Entries without a `lib`