summary refs log tree commit diff
path: root/pkgs/lib/types.nix
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2013-08-22 10:16:00 +0300
committerEvgeny Egorochkin <phreedom@yandex.ru>2013-08-22 10:16:00 +0300
commit53994036d35d2605ea79620b3cd9d37065f3a6be (patch)
treeb390ad5d66364ca30d1a3d67d275e76f25e176a0 /pkgs/lib/types.nix
parentfcbc4fe9ffe55924e760dd163a428f95c109d2bf (diff)
downloadnixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar.gz
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar.bz2
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar.lz
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar.xz
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.tar.zst
nixpkgs-53994036d35d2605ea79620b3cd9d37065f3a6be.zip
Replace fold by all because its more readable and shorter
Diffstat (limited to 'pkgs/lib/types.nix')
-rw-r--r--pkgs/lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/types.nix b/pkgs/lib/types.nix
index afd5ed5e17c..9dce885b182 100644
--- a/pkgs/lib/types.nix
+++ b/pkgs/lib/types.nix
@@ -116,7 +116,7 @@ rec {
     attrsOf = elemType: mkOptionType {
       name = "attribute set of ${elemType.name}s";
       check = x: lib.traceValIfNot isAttrs x
-        && fold (e: v: v && elemType.check e) true (lib.attrValues x);
+        && all elemType.check (lib.attrValues x); 
       merge = lib.zipAttrsWith (name: elemType.merge);
       iter = f: path: set: lib.mapAttrs (name: elemType.iter f (path + "." + name)) set;
       fold = op: nul: set: fold (e: l: elemType.fold op l e) nul (lib.attrValues set);