From 1ad9cfe4ec9258d071d7f1522e8fdf2866fbf99c Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 27 Apr 2019 16:05:06 +0200 Subject: Store thunks uniformly in WHNF --- dhall/src/normalize.rs | 101 ++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 59 deletions(-) (limited to 'dhall/src') diff --git a/dhall/src/normalize.rs b/dhall/src/normalize.rs index 7a92d35..9c62923 100644 --- a/dhall/src/normalize.rs +++ b/dhall/src/normalize.rs @@ -50,11 +50,7 @@ impl<'a> Typed<'a> { impl<'a> PartiallyNormalized<'a> { pub(crate) fn normalize(self) -> Normalized<'a> { - Normalized( - self.0.normalize_to_expr(), - self.1, - self.2, - ) + Normalized(self.0.normalize_to_expr(), self.1, self.2) } pub(crate) fn shift(&self, delta: isize, var: &V