nix repl :t: Indicate strings that have a context

This commit is contained in:
Eelco Dolstra 2017-10-29 17:11:22 +01:00
parent 9971d875a4
commit c1ae18941a
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -149,7 +149,7 @@ string showType(const Value & v)
switch (v.type) {
case tInt: return "an integer";
case tBool: return "a boolean";
case tString: return "a string";
case tString: return v.string.context ? "a string with context" : "a string";
case tPath: return "a path";
case tNull: return "null";
case tAttrs: return "a set";