mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
lib/generators: explicitly import names from lib.trivial
Everything else was already imported.
This commit is contained in:
parent
b83b8a3548
commit
3a01525ae7
|
@ -14,7 +14,7 @@
|
||||||
* Documentation in the manual, #sec-generators
|
* Documentation in the manual, #sec-generators
|
||||||
*/
|
*/
|
||||||
{ lib }:
|
{ lib }:
|
||||||
with (lib).trivial;
|
|
||||||
let
|
let
|
||||||
inherit (builtins)
|
inherit (builtins)
|
||||||
addErrorContext
|
addErrorContext
|
||||||
|
@ -25,6 +25,7 @@ let
|
||||||
filter
|
filter
|
||||||
head
|
head
|
||||||
isAttrs
|
isAttrs
|
||||||
|
isBool
|
||||||
isFloat
|
isFloat
|
||||||
isInt
|
isInt
|
||||||
isList
|
isList
|
||||||
|
@ -36,6 +37,7 @@ let
|
||||||
replaceStrings
|
replaceStrings
|
||||||
split
|
split
|
||||||
tail
|
tail
|
||||||
|
typeOf
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (lib.attrsets)
|
inherit (lib.attrsets)
|
||||||
|
@ -65,6 +67,8 @@ let
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (lib.trivial)
|
inherit (lib.trivial)
|
||||||
|
const
|
||||||
|
id
|
||||||
isFunction # Note: not the builtin, considers `__functor` in attrsets.
|
isFunction # Note: not the builtin, considers `__functor` in attrsets.
|
||||||
functionArgs # Note: not the builtin; considers `__functor` in attrsets.
|
functionArgs # Note: not the builtin; considers `__functor` in attrsets.
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue