diff options
author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-09-22 12:22:04 +0200 |
---|---|---|
committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-09-27 02:43:59 +0200 |
commit | 3b6169f87be45c77ec4b56d118a5e2c718ff3f2b (patch) | |
tree | 6960091ea305fbcae0abcf3b0827aabedc2c81ec /nixos | |
parent | 857a844ea8f1736e42f9c14c992d95be7b83a7c4 (diff) | |
download | nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar.gz nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar.bz2 nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar.lz nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar.xz nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.tar.zst nixlib-3b6169f87be45c77ec4b56d118a5e2c718ff3f2b.zip |
lib.lists.foldl': Make strict in the initial accumulator
To maintain backwards compatibility, this can't be changed in the Nix language. We can however ensure that the version Nixpkgs has the more intuitive behavior.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2311.section.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index cdb73fb49fa8..011fa84c96af 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -226,6 +226,9 @@ - `networking.networkmanager.firewallBackend` was removed as NixOS is now using iptables-nftables-compat even when using iptables, therefore Networkmanager now uses the nftables backend unconditionally. +- [`lib.lists.foldl'`](https://nixos.org/manual/nixpkgs/stable#function-library-lib.lists.foldl-prime) now always evaluates the initial accumulator argument first. + If you depend on the lazier behavior, consider using [`lib.lists.foldl`](https://nixos.org/manual/nixpkgs/stable#function-library-lib.lists.foldl) or [`builtins.foldl'`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-foldl') instead. + - `rome` was removed because it is no longer maintained and is succeeded by `biome`. - The `services.mtr-exporter.target` has been removed in favor of `services.mtr-exporter.jobs` which allows specifying multiple targets. |