nixpkgs/lib
Maximilian Bosch 5773ae93f7
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.
2021-08-26 00:28:49 +02:00
..
systems Merge pull request #134763 from r-burns/fix-scaleway 2021-08-21 03:40:30 +01:00
tests lib/generators: move limit detection into withRecursion 2021-08-26 00:28:49 +02:00
asserts.nix
attrsets.nix lib: optimize setAttrByPath and cleaup imports 2021-08-23 18:04:47 -04:00
cli.nix
customisation.nix treewide: Do a number of no-op cleanups for cross and darwin 2021-05-06 11:17:26 -04:00
debug.nix
default.nix lib: export strings/escapeRegex 2021-08-22 00:01:38 -04:00
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix Fix import path. 2021-08-14 14:46:00 -05:00
generators.nix lib/generators: move limit detection into withRecursion 2021-08-26 00:28:49 +02:00
kernel.nix
licenses.nix lib.licenses: mark a few unfree redistributable licenses as such 2021-08-11 19:07:47 +02:00
lists.nix
meta.nix
minver.nix
modules.nix lib/modules: fix error-message when declaring an option inside `config' 2021-08-25 23:18:27 +02:00
options.nix lib/generators: move limit detection into withRecursion 2021-08-26 00:28:49 +02:00
sources.nix lib.sources.trace: init 2021-05-29 16:03:55 +02:00
strings-with-deps.nix
strings.nix strings.nix: Fix overly monomorphic type signature comments 2021-07-04 20:52:48 +02:00
trivial.nix lib: fix functionArgs for functors 2021-08-03 16:40:58 -05:00
types.nix Merge pull request #128032 from Artturin/add-swap-options 2021-07-23 10:45:53 +02:00
versions.nix
zip-int-bits.nix