summaryrefslogtreecommitdiff
path: root/dhall/src/core/thunk.rs
diff options
context:
space:
mode:
authorNadrieril Feneanar2019-08-10 23:15:13 +0200
committerGitHub2019-08-10 23:15:13 +0200
commitb41e0278eda19a495daf0586693f1b5981a89653 (patch)
treecedc8ca740ca0d0bbc74fc987cc0c041f0391b91 /dhall/src/core/thunk.rs
parent674fbdc33c788156f76d263b044dccc48c810870 (diff)
parent80c8d87db595c91293af75d710464ac5379c7e28 (diff)
Merge pull request #98 from Nadrieril/catchup-spec
Catchup spec
Diffstat (limited to '')
-rw-r--r--dhall/src/core/thunk.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhall/src/core/thunk.rs b/dhall/src/core/thunk.rs
index 5c569e1..5bc25f2 100644
--- a/dhall/src/core/thunk.rs
+++ b/dhall/src/core/thunk.rs
@@ -221,6 +221,10 @@ impl TypeThunk {
self.0.to_type()
}
+ pub fn to_typed(&self) -> Typed {
+ self.0.clone()
+ }
+
pub fn normalize_to_expr_maybe_alpha(&self, alpha: bool) -> OutputSubExpr {
self.normalize_nf().normalize_to_expr_maybe_alpha(alpha)
}