Skip to content

Commit

Permalink
argument->term uses elaborate (caveat, one may expect a type)
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Aug 14, 2020
1 parent 77862d8 commit 67342d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hb.elpi
Expand Up @@ -123,7 +123,7 @@ argument->gref X _ :- coq.error "Argument" X "is expected to be a string".

pred argument->term i:argument, o:term.
argument->term (str S) (global GR) :- !, argument->gref (str S) GR.
argument->term (trm T) T :- !, std.assert-ok! (coq.typecheck T _) "not well typed term".
argument->term (trm T) T1 :- !, std.assert-ok! (coq.elaborate-skeleton T _ T1) "not well typed term".
argument->term X _ :- coq.error "Argument" X " is expected to be a term or a string".

% Type to share code between HB.mixin and HB.factory (that supports alias factories)
Expand Down

0 comments on commit 67342d7

Please sign in to comment.