Skip to content

Commit 4dda238

Browse files
committed
HB.pack was asserting the key is a type
but we also support hierarchies of functions
1 parent 71df792 commit 4dda238

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

HB/pack.elpi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ main Ty Args Instance :- std.do! [
1414
get-constructor Class KC,
1515
get-constructor Structure KS,
1616

17-
std.assert-ok! (coq.elaborate-ty-skeleton TSkel _ T) "HB.pack: not a type",
17+
std.assert-ok! (d\
18+
(coq.elaborate-ty-skeleton TSkel _ T d, d = ok) ;
19+
coq.elaborate-skeleton TSkel _ T d
20+
) "HB.pack: not a well typed key",
1821

1922
private.elab-factories FactoriesSkel T Factories,
2023

0 commit comments

Comments
 (0)