2024-07-08 18:39:26 +03:00
|
|
|
Nix <nix version>
|
|
|
|
Type :? for help.
|
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :l doc-comments.nix
|
|
|
|
Added <number omitted> variables.
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc nonStrict
|
|
|
|
Function `nonStrict`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:37:70
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
My syntax is not strict, but I'm strict anyway.
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc strict
|
|
|
|
Function `strict`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:38:63
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
I don't have to be strict, but I am anyway.
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc strictPre
|
|
|
|
Function `strictPre`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:40:48
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
Here's one way to do this
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
nix-repl> :doc strictPost
|
|
|
|
Function `strictPost`\
|
|
|
|
… defined at /path/to/tests/functional/repl/doc-comments.nix:41:53
|
2024-07-08 18:39:26 +03:00
|
|
|
|
2024-07-23 18:52:28 +03:00
|
|
|
Here's another way to do this
|