Handle cycles when printing a value
Handle cycles when printing a value

So this no longer crashes with a stack overflow:

  nix-instantiate -E --eval 'let as = { x = as; }; in as'

Instead it prints:

  { x = { x = <CYCLE>; }; }

zimbatm/nix,joelmo/nix,gridaphobe/nix,NixOS/nix,vcunat/nix,dezgeg/nix,gridaphobe/nix,garbas/nix,dezgeg/nix,ehmry/nix,joelmo/nix,vcunat/nix,layus/nix,layus/nix,aucampia/nix,dtzWill/nix,rycee/nix,vizanto/nix,joelmo/nix,gridaphobe/nix,NixOS/nix,gebner/nix,zimbatm/nix,layus/nix,aucampia/nix,dezgeg/nix,bennofs/nix,rycee/nix,zimbatm/nix,bjornfor/nix,rowhit/nix,vizanto/nix,acowley/nix,shlevy/nix,bjornfor/nix,rowhit/nix,dtzWill/nix,puffnfresh/nix,offlinehacker/nix,bennofs/nix,offlinehacker/nix,bennofs/nix,aucampia/nix,dtzWill/nix,garbas/nix,shlevy/nix,garbas/nix,offlinehacker/nix,peti/nix,rowhit/nix,acowley/nix,bjornfor/nix,pikajude/nix,pikajude/nix,zimbatm/nix,aucampia/nix,rycee/nix,acowley/nix,dezgeg/nix,tchajed/nix,joelmo/nix,NixOS/nix,tchajed/nix,puffnfresh/nix,vizanto/nix,NixOS/nix,layus/nix,ehmry/nix,ttuegel/nix,peti/nix,offlinehacker/nix,bjornfor/nix,ehmry/nix,garbas/nix,NixOS/nix,vcunat/nix,tchajed/nix,dtzWill/nix,layus/nix,dtzWill/nix,ehmry/nix,garbas/nix,puffnfresh/nix,ttuegel/nix,shlevy/nix,ysangkok/nix,wmertens/nix,gridaphobe/nix,rycee/nix,gebner/nix,rycee/nix,ttuegel/nix,tchajed/nix,ehmry/nix,peti/nix,gebner/nix,ysangkok/nix,peti/nix,wmertens/nix,ttuegel/nix,acowley/nix,vcunat/nix,peti/nix,pikajude/nix,shlevy/nix,vizanto/nix,shlevy/nix,puffnfresh/nix,rowhit/nix,ehmry/nix,bennofs/nix,dezgeg/nix,wmertens/nix,gebner/nix,ysangkok/nix,wmertens/nix