* Fixed builtins.genericClosure.

This commit is contained in:
Eelco Dolstra
2010-04-21 15:57:11 +00:00
parent fe2d869e04
commit 0777448ca6
3 changed files with 61 additions and 25 deletions
+7 -3
View File
@@ -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();
}