mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
* Fixed builtins.genericClosure.
This commit is contained in:
parent
fe2d869e04
commit
0777448ca6
3 changed files with 61 additions and 25 deletions
|
@ -73,21 +73,25 @@ std::ostream & operator << (std::ostream & str, Value & v)
|
|||
}
|
||||
|
||||
|
||||
string showType(Value & v)
|
||||
string showType(const Value & v)
|
||||
{
|
||||
switch (v.type) {
|
||||
case tInt: return "an integer";
|
||||
case tBool: return "a boolean";
|
||||
case tString: return "a string";
|
||||
case tPath: return "a path";
|
||||
case tNull: return "null";
|
||||
case tAttrs: return "an attribute set";
|
||||
case tList: return "a list";
|
||||
case tNull: return "null";
|
||||
case tThunk: return "a thunk";
|
||||
case tApp: return "a function application";
|
||||
case tLambda: return "a function";
|
||||
case tCopy: return "a copy";
|
||||
case tBlackhole: return "a black hole";
|
||||
case tPrimOp: return "a built-in function";
|
||||
case tPrimOpApp: return "a partially applied built-in function";
|
||||
default: throw Error(format("unknown type: %1%") % v.type);
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue