diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-03T14·55+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-03T14·55+0000 |
commit | d20c3011a06a49d229c92c49447eb21b5a1f110d (patch) | |
tree | e1850df03fe0f5fdd4f956949f9219b67b20b75b /src/libexpr/nixexpr.cc | |
parent | 84e6c43e85cab83ee033bf13c1e58c0f30ca1de9 (diff) |
* toFile: added an additional argument to specify the store path
suffix, e.g., `builtins.toFile "builder.sh" "..."'. * toFile: handle references to other files correctly.
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r-- | src/libexpr/nixexpr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index 9622a03285f3..582eecaf75b3 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"; } |