about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2024-06-20 18:30:39 +0200
committerSilvan Mosberger <silvan.mosberger@tweag.io>2024-06-20 22:45:50 +0200
commitf6cbaeca60d641d71377050cef27f6cdf74f8b72 (patch)
tree38aefc8837d9313af949c5741070f949cb0334cc /lib
parent0a162f4dcdab8f283d471f305735eca9a5a77003 (diff)
lib.head: inherit from lib.lists
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 0da4361f0157e..51994b24e90d6 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -66,7 +66,7 @@ let
 
     inherit (builtins) add addErrorContext
       deepSeq elem elemAt genericClosure getAttr
-      hasAttr head isAttrs isBool isInt isList isPath isString
+      hasAttr isAttrs isBool isInt isList isPath isString
       lessThan listToAttrs pathExists readFile replaceStrings seq
       sub substring trace;
     inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor
@@ -94,7 +94,7 @@ let
       reverseList listDfs toposort sort sortOn naturalSort compareLists take
       drop sublist last init crossLists unique allUnique intersectLists
       subtractLists mutuallyExclusive groupBy groupBy' concatLists genList
-      length tail;
+      length head tail;
     inherit (self.strings) concatStrings concatMapStrings concatImapStrings
       stringLength
       intersperse concatStringsSep concatMapStringsSep