When showing a lambda, also show the position of the definition

This commit is contained in:
Fabian Schmitthenner 2016-03-05 16:47:17 +00:00
parent 79b02dffcb
commit 8bec2c07a1

View file

@ -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: