mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
lib.showWarnings: inherit lib functions, beta reduce for free
This commit is contained in:
@@ -13,6 +13,7 @@ let
|
||||
warn
|
||||
;
|
||||
inherit (lib)
|
||||
foldr
|
||||
fromJSON
|
||||
isString
|
||||
readFile
|
||||
@@ -1047,7 +1048,7 @@ in
|
||||
|
||||
info = msg: builtins.trace "INFO: ${msg}";
|
||||
|
||||
showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings;
|
||||
showWarnings = warnings: res: foldr warn res warnings;
|
||||
|
||||
## Function annotations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user