summaryrefslogtreecommitdiff
path: root/dhall/src/traits
diff options
context:
space:
mode:
authorNadrieril2019-05-02 14:11:29 +0200
committerNadrieril2019-05-02 14:11:29 +0200
commitc13a4881b56bf2f5b2d5d4d0018a48927b45e7e0 (patch)
tree442c2b257db627209ac963a17f80c475df4272b0 /dhall/src/traits
parent5465b7e2b8cc286e2e8b87556b3ec6a2476cf0cf (diff)
Store Thunk in Normalized
Diffstat (limited to 'dhall/src/traits')
-rw-r--r--dhall/src/traits/static_type.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhall/src/traits/static_type.rs b/dhall/src/traits/static_type.rs
index 8b5acbf..4dd9961 100644
--- a/dhall/src/traits/static_type.rs
+++ b/dhall/src/traits/static_type.rs
@@ -39,7 +39,9 @@ fn mktype<'a>(x: SubExpr<X, X>) -> SimpleType<'a> {
impl<T: SimpleStaticType> StaticType for T {
fn get_static_type() -> Type<'static> {
crate::expr::Normalized(
- T::get_simple_static_type().into(),
+ crate::normalize::Thunk::from_normalized_expr(
+ T::get_simple_static_type().into(),
+ ),
Some(Type::const_type()),
std::marker::PhantomData,
)