diff options
author | Fabian Schmitthenner <development@schmitthenner.eu> | 2016-03-05T16·47+0000 |
---|---|---|
committer | Fabian Schmitthenner <development@schmitthenner.eu> | 2016-03-05T16·48+0000 |
commit | 8bec2c07a1e25e3471ee5f1b7aedb30a5d5b03cd (patch) | |
tree | 8b13407e5b08608dd7771590b911cd4366c92877 | |
parent | 79b02dffcb6f79bb200d17749265cec23c6dda77 (diff) |
When showing a lambda, also show the position of the definition
-rw-r--r-- | nix-repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-repl.cc b/nix-repl.cc index 8c4f4017470d..e17f73ae0cab 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -628,7 +628,7 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m break; case tLambda: - str << "«lambda»"; + str << "«lambda defined at " << v.lambda.fun->pos << "»"; break; case tPrimOp: |