2024-07-15 15:27:09 +03:00
|
|
|
Nix <nix version>
|
|
|
|
Type :? for help.
|
2024-07-23 18:52:28 +03:00
|
|
|
|
|
|
|
nix-repl> :l doc-comments.nix
|
2024-07-15 15:27:09 +03:00
|
|
|
Added <number omitted> variables.
|
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc curriedArgs
|
|
|
|
Function `curriedArgs`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:48:5
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
A documented function.
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> x = curriedArgs 1
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> "Note that users may not expect this to behave as it currently does"
|
2024-07-15 15:27:09 +03:00
|
|
|
"Note that users may not expect this to behave as it currently does"
|
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc x
|
|
|
|
Function `curriedArgs`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:50:5
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
The function returned by applying once
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> "This won't produce docs; no support for arbitrary values"
|
|
|
|
"This won't produce docs; no support for arbitrary values"
|
2024-07-15 15:27:09 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc x 2
|
2024-07-15 15:27:09 +03:00
|
|
|
error: value does not have documentation
|