mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
Pretty-print values in the REPL by printing each item in a list or
attrset on a separate line. When possible, single-item lists and
attrsets are printed on one line, as long as they don't contain a nested
list, attrset, or thunk.
Before:
```
{ attrs = { a = { b = { c = { }; }; }; }; list = [ 1 ]; list' = [ 1 2 3 ]; }
```
After:
```
{
attrs = {
a = {
b = {
c = { };
};
};
};
list = [ 1 ];
list' = [
1
2
3
];
}
```
|
||
|---|---|---|
| .. | ||
| flake | ||
| value | ||
| derived-path.cc | ||
| error_traces.cc | ||
| eval.cc | ||
| json.cc | ||
| local.mk | ||
| primops.cc | ||
| search-path.cc | ||
| trivial.cc | ||