Skip to content

Commit

Permalink
lib/types: use elemTypeFunctor for types.listOf
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjobeki committed Jan 6, 2025
1 parent 3a462fe commit 557e4fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ rec {
getSubOptions = prefix: elemType.getSubOptions (prefix ++ ["*"]);
getSubModules = elemType.getSubModules;
substSubModules = m: listOf (elemType.substSubModules m);
functor = (defaultFunctor name) // { wrapped = elemType; };
functor = (elemTypeFunctor name { inherit elemType; }) // {
type = payload: types.listOf payload.elemType;
};
nestedTypes.elemType = elemType;
};

Expand Down

0 comments on commit 557e4fa

Please sign in to comment.