lib.showWarnings: inherit lib functions, beta reduce for free

This commit is contained in:
Eman Resu
2026-05-21 14:50:25 -04:00
parent 7f6eb89aeb
commit f23b117e50

View File

@@ -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