Skip to content

Commit

Permalink
hijack short.pack
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jun 22, 2021
1 parent 8679ff3 commit be2e9a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions HB/structure.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ declare Module B :- std.do! [

if (get-option "short.pack" ShortPack) (std.do! [
if-verbose (coq.say "HB: short name for type:" ShortPack),
coq.notation.abbreviation-body PackAbbrev NPackAbbrev PackAbbrevTrm,
@global! => log.coq.notation.add-abbreviation
ShortPack NPackAbbrev PackAbbrevTrm ff _]) true,
% coq.notation.abbreviation-body PackAbbrev NPackAbbrev PackAbbrevTrm,
% @global! => log.coq.notation.add-abbreviation
% ShortPack NPackAbbrev PackAbbrevTrm ff _]
coq.notation.add-abbreviation-for-tactic [ShortPack] "hb_instance" [trm (global Structure)]
]) true,

if-verbose (coq.say "HB: making coercion from type to target"),
synthesis.infer-coercion-tgt MLwP CoeClass,
Expand Down

0 comments on commit be2e9a8

Please sign in to comment.