From c60d99ddec3653ed10828c91f3e1abf8b78238b0 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 29 Apr 2019 17:13:51 +0200 Subject: Allow representing normal form as a semantic value --- dhall/src/normalize.rs | 566 +++++++++++++++++++++++++++++-------------------- 1 file changed, 340 insertions(+), 226 deletions(-) (limited to 'dhall/src/normalize.rs') diff --git a/dhall/src/normalize.rs b/dhall/src/normalize.rs index dd9474d..b5971cb 100644 --- a/dhall/src/normalize.rs +++ b/dhall/src/normalize.rs @@ -72,7 +72,7 @@ impl<'a> PartiallyNormalized<'a> { self.2, ) } - pub(crate) fn into_whnf(self) -> WHNF { + pub(crate) fn into_whnf(self) -> Value { self.0 } } @@ -82,9 +82,9 @@ fn shift_mut(delta: isize, var: &V