about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Schmitthenner <development@schmitthenner.eu>2016-03-05T16·47+0000
committerFabian Schmitthenner <development@schmitthenner.eu>2016-03-05T16·48+0000
commit8bec2c07a1e25e3471ee5f1b7aedb30a5d5b03cd (patch)
tree8b13407e5b08608dd7771590b911cd4366c92877
parent79b02dffcb6f79bb200d17749265cec23c6dda77 (diff)
When showing a lambda, also show the position of the definition
-rw-r--r--nix-repl.cc2
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: