add LambdaSet layout variant

This commit is contained in:
Folkert 2021-09-12 17:00:09 +02:00
parent e00c8b6837
commit 350891468a
7 changed files with 40 additions and 1 deletions

View file

@ -59,6 +59,15 @@ fn build_hash_layout<'a, 'ctx, 'env>(
val.into_struct_value(),
),
Layout::LambdaSet(lambda_set) => build_hash_layout(
env,
layout_ids,
seed,
val,
&lambda_set.runtime_representation(),
when_recursive,
),
Layout::Union(union_layout) => {
build_hash_tag(env, layout_ids, layout, union_layout, seed, val)
}