diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-08 20:52:13 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-03-30 03:05:05 -0400 |
commit | 4c0d7da1837356047aabfed4661daf4307821b75 (patch) | |
tree | acc8f6a873c1bfa5f31f4beee022b7818fd56abb /lib/attrsets.nix | |
parent | da79d1f01f6bd70833543cab5308d2439c429f9e (diff) |
Get rid of all `with { inherit... }` and just used `let inherit...`
The old forms presumably predates, or were made in ignorance of, `let inherit`. This way is better style as the scoping as more lexical, something which Nix can (or might already!) take advantage of.
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index c1bd764c70dcb..f9e6b7495fc58 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -1,12 +1,12 @@ # Operations on attribute sets. -with { +let inherit (builtins) head tail length; inherit (import ./trivial.nix) or; inherit (import ./default.nix) fold; inherit (import ./strings.nix) concatStringsSep; inherit (import ./lists.nix) concatMap concatLists all deepSeqList; -}; +in rec { inherit (builtins) attrNames listToAttrs hasAttr isAttrs getAttr; |