summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13 16:17:07 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13 16:17:07 +0000
commitf23dcdd60330c3b2f83b5b4278e38c245c397468 (patch)
tree0c0386b4b42d7974dff18e93485fdda7b9ad71eb /src/libexpr/nixexpr.hh
parent05879db628a31f53c69a0fc29311c840c80837e0 (diff)
downloadguix-f23dcdd60330c3b2f83b5b4278e38c245c397468.tar.gz
* Canonicalise ASTs in `nix-instantiate --eval': remove position
  info, sort attribute sets.

Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 2fdad73b78..d76bc1060d 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);