about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-08-26 00:28:49 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2021-08-26 00:28:49 +0200
commit5773ae93f75cfd504d7971c1b26955fa50a00744 (patch)
treed5f19ba068e4efee4f711e1dad969cf3b3c61470 /.github
parentb6d3c9f821b704fbfb68d20a76520fa9e160df36 (diff)
downloadnixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar.gz
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar.bz2
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar.lz
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar.xz
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.tar.zst
nixlib-5773ae93f75cfd504d7971c1b26955fa50a00744.zip
lib/generators: move limit detection into `withRecursion`
As suggested in #131205.

Now it's possible to pretty-print a value with `lib.generators` like
this:

    with lib.generators;
    toPretty { }
      (withRecursion { depthLimit = 10; } /* arbitrarily complex value */)

Also, this can be used for any other pretty-printer now if needed.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions