From 8e4182f26b20b28f60fb0c21b3e08e19314de9a0 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 5 May 2019 00:43:41 +0200 Subject: Make Value equality be alpha-equivalence Closes #66, #65 --- dhall/src/normalize.rs | 99 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 86 insertions(+), 13 deletions(-) (limited to 'dhall/src/normalize.rs') diff --git a/dhall/src/normalize.rs b/dhall/src/normalize.rs index 3e13350..c11dd82 100644 --- a/dhall/src/normalize.rs +++ b/dhall/src/normalize.rs @@ -53,7 +53,7 @@ impl Typed { /// Stores a pair of variables: a normal one and if relevant one /// that corresponds to the alpha-normalized version of the first one. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Eq)] pub(crate) struct DoubleVar { normal: V