mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
Add ‘deepSeq’ primop
Note that unlike ‘lib.deepSeq’ in Nixpkgs, this handles cycles.
This commit is contained in:
parent
831fc8ea21
commit
0cd6596b0e
4 changed files with 14 additions and 0 deletions
1
tests/lang/eval-okay-deepseq.nix
Normal file
1
tests/lang/eval-okay-deepseq.nix
Normal file
|
@ -0,0 +1 @@
|
|||
builtins.deepSeq (let as = { x = 123; y = as; }; in as) 456
|
Loading…
Add table
Add a link
Reference in a new issue