Skip to content

Commit

Permalink
Remove types.functionTo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbp committed Sep 7, 2014
1 parent becde61 commit 4ff1ab5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,6 @@ rec {
substSubModules = m: nullOr (elemType.substSubModules m);
};

functionTo = elemType: mkOptionType {
name = "function that evaluates to a(n) ${elemType.name}";
check = isFunction;
merge = loc: defs:
fnArgs: elemType.merge loc (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs);
getSubOptions = elemType.getSubOptions;
getSubModules = elemType.getSubModules;
substSubModules = m: functionTo (elemType.substSubModules m);
};

submodule = opts:
let
opts' = toList opts;
Expand Down

0 comments on commit 4ff1ab5

Please sign in to comment.