From f23dcdd60330c3b2f83b5b4278e38c245c397468 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 13 Jan 2007 16:17:07 +0000 Subject: * Canonicalise ASTs in `nix-instantiate --eval': remove position info, sort attribute sets. --- src/libexpr/nixexpr.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libexpr/nixexpr.hh') diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index 2fdad73b78a3..d76bc1060d33 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -94,6 +94,11 @@ Expr substitute(const Substitution & subs, Expr e); void checkVarDefs(const ATermMap & def, Expr e); +/* Canonicalise a Nix expression by sorting attributes and removing + location information. */ +Expr canonicaliseExpr(Expr & e); + + /* Create an expression representing a boolean. */ Expr makeBool(bool b); -- cgit 1.4.1