From d20c3011a06a49d229c92c49447eb21b5a1f110d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Oct 2006 14:55:54 +0000 Subject: * toFile: added an additional argument to specify the store path suffix, e.g., `builtins.toFile "builder.sh" "..."'. * toFile: handle references to other files correctly. --- src/libexpr/nixexpr.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libexpr/nixexpr.cc') diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index 9622a03285..582eecaf75 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -297,6 +297,7 @@ string showType(Expr e) { ATerm t1, t2, t3; ATermList l1; + ATermBlob b1; int i1; if (matchStr(e, t1)) return "a string"; if (matchPath(e, t1)) return "a path"; @@ -308,6 +309,7 @@ string showType(Expr e) if (matchFunction1(e, t1, t2, t3)) return "a function"; if (matchAttrs(e, l1)) return "an attribute set"; if (matchList(e, l1)) return "a list"; + if (matchPrimOp(e, i1, b1, l1)) return "a partially applied built-in function"; if (matchContext(e, l1, t1)) return "a context containing " + showType(t1); return "an unknown type"; } -- cgit 1.4.1