From 8bec2c07a1e25e3471ee5f1b7aedb30a5d5b03cd Mon Sep 17 00:00:00 2001 From: Fabian Schmitthenner Date: Sat, 5 Mar 2016 16:47:17 +0000 Subject: [PATCH] When showing a lambda, also show the position of the definition --- nix-repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-repl.cc b/nix-repl.cc index 8c4f40174..e17f73ae0 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: