diff options
Diffstat (limited to 'dhall/src/semantics/tck/tyexpr.rs')
-rw-r--r-- | dhall/src/semantics/tck/tyexpr.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dhall/src/semantics/tck/tyexpr.rs b/dhall/src/semantics/tck/tyexpr.rs index 9e8dc47..e4108ad 100644 --- a/dhall/src/semantics/tck/tyexpr.rs +++ b/dhall/src/semantics/tck/tyexpr.rs @@ -67,7 +67,15 @@ impl TyExpr { normalize_tyexpr_whnf(self, env) } pub fn normalize_whnf_noenv(&self) -> Value { - normalize_tyexpr_whnf(self, &NzEnv::new()) + self.normalize_whnf(&NzEnv::new()) + } + pub fn normalize_nf(&self, env: &NzEnv) -> Value { + let mut val = self.normalize_whnf(env); + val.normalize_mut(); + val + } + pub fn normalize_nf_noenv(&self) -> Value { + self.normalize_nf(&NzEnv::new()) } } |