mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
ca2cc26e12
... as well as match buildReadlineNoMarkdown. Unfortunately it doesn't support long inputs or multiline inputs for now. This needs to make better use of the interacter interface.
30 lines
787 B
Text
30 lines
787 B
Text
Nix <nix version>
|
|
Type :? for help.
|
|
|
|
nix-repl> :l doc-comments.nix
|
|
Added <number omitted> variables.
|
|
|
|
nix-repl> :doc curriedArgs
|
|
Function `curriedArgs`\
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:48:5
|
|
|
|
A documented function.
|
|
|
|
nix-repl> x = curriedArgs 1
|
|
|
|
nix-repl> "Note that users may not expect this to behave as it currently does"
|
|
"Note that users may not expect this to behave as it currently does"
|
|
|
|
nix-repl> :doc x
|
|
Function `curriedArgs`\
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:50:5
|
|
|
|
The function returned by applying once
|
|
|
|
nix-repl> "This won't produce docs; no support for arbitrary values"
|
|
"This won't produce docs; no support for arbitrary values"
|
|
|
|
nix-repl> :doc x 2
|
|
error: value does not have documentation
|
|
|
|
nix-repl>
|