mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
lib/types: types.functionTo deprecate functor.wrapped in favor of functor.payload.elemType
This commit is contained in:
parent
4fe25460e1
commit
f6214eb786
4 changed files with 21 additions and 1 deletions
|
@ -887,7 +887,9 @@ rec {
|
|||
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "<function body>" ]);
|
||||
getSubModules = elemType.getSubModules;
|
||||
substSubModules = m: functionTo (elemType.substSubModules m);
|
||||
functor = (defaultFunctor "functionTo") // { wrapped = elemType; };
|
||||
functor = (elemTypeFunctor "functionTo" { inherit elemType; }) // {
|
||||
type = payload: types.functionTo payload.elemType;
|
||||
};
|
||||
nestedTypes.elemType = elemType;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue