aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-21 15:57:11 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-21 15:57:11 +0000
commit0777448ca68175b6daf3d8f5374cf43523828c47 (patch)
tree97ca8970da851edfe568ad3e19ec06dc318ad7fd /src/libexpr/eval.cc
parentfe2d869e04372de69719c3989a75247ff44b8fd4 (diff)
* Fixed builtins.genericClosure.
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index f59ea99e5..0e4f2519a 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -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();
}