From 0777448ca68175b6daf3d8f5374cf43523828c47 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Apr 2010 15:57:11 +0000 Subject: * Fixed builtins.genericClosure. --- src/libexpr/eval.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/libexpr/eval.cc') diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index f59ea99e5d41..0e4f2519ace1 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(); } -- cgit 1.4.1