From dadcd9aa595bf3f469514ccb586eace61a9c6b03 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 5 May 2019 00:17:07 +0200 Subject: Use alpha-normalization in equivalence checking --- dhall/src/typecheck.rs | 82 ++------------------------------------------------ 1 file changed, 2 insertions(+), 80 deletions(-) diff --git a/dhall/src/typecheck.rs b/dhall/src/typecheck.rs index fcf4bd8..8137417 100644 --- a/dhall/src/typecheck.rs +++ b/dhall/src/typecheck.rs @@ -69,9 +69,6 @@ impl Type { fn as_const(&self) -> Option { self.0.as_const() } - fn internal(&self) -> &TypeInternal { - &self.0 - } fn internal_whnf(&self) -> Option { self.0.whnf() } @@ -240,89 +237,14 @@ fn function_check(a: Const, b: Const) -> Result { } } -fn match_vars(vl: &V