Strictly check the arguments to mkOption

And fix various instances of bad arguments.
This commit is contained in:
Eelco Dolstra
2013-10-30 15:35:09 +01:00
parent db2a9afb75
commit 70a2c54527
9 changed files with 45 additions and 39 deletions
+3
View File
@@ -201,6 +201,9 @@ rec {
name = /* builtins.trace "types.optionSet is deprecated; use types.submodule instead" */ "option set";
};
# Augment the given type with an additional type check function.
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };
};
}