mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
* Canonicalise ASTs in `nix-instantiate --eval': remove position
info, sort attribute sets.
This commit is contained in:
parent
05879db628
commit
f23dcdd603
7 changed files with 49 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue