Skip to content

Commit 9d0903c

Browse files
authored
Merge pull request #310 from math-comp/fix-pB
fix planB
2 parents 0a365a3 + edd6516 commit 9d0903c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

HB/common/log.elpi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ pred log.private.log-tactic i:term.
266266

267267
with-logging P :- (get-option "elpi.hb.log" _, NICE = tt ; get-option "elpi.hb.log.raw" _, NICE = ff), !,
268268
get-option "elpi.loc" Loc,
269-
loc.fields Loc FILE _ _ _ _,
270-
std.any->string Loc LocStr,
269+
loc.fields Loc FILE Start Stop _ _,
270+
LocStr is "characters " ^ {std.any->string Start} ^ "-" ^ {std.any->string Stop},
271271
FILENAME is FILE ^ ".hb",
272272
open_append FILENAME OC1,
273273
std.string.concat "\n" ["","HIERARCHY BUILDER PATCH v1",LocStr,""] PATCH1,
@@ -295,7 +295,7 @@ log.private.log-vernac _.
295295

296296
log.private.log-tactic P :- log.private.logger L Nice, !,
297297
if (Nice = tt) (PPALL = []) (PPALL = [@ppall!]),
298-
log.private.logger-extend L {PPALL => coq.term->pp P}.
298+
log.private.logger-extend L {PPALL => @holes! => coq.term->pp P}.
299299
log.private.log-tactic _.
300300

301301
% The main entry point to print vernacular commands is coq.vernac->pp
@@ -361,7 +361,7 @@ coq.vernac->pp1 (abbreviation Name NParams Term) (box (hv 2) [box h [str "Notati
361361
coq.vernac->ppabbrterm NParams Term StrParams B.
362362
coq.vernac->pp1 (canonical Name Local) (box h [Locality, str "Canonical ", str Name, str "."]) :-
363363
local->locality Local Locality.
364-
coq.vernac->pp1 (coercion Name SRC TGT) (box h [str "Coercion ", str Name, str " : ", str S, str " >-> ", str T, str "."]) :-
364+
coq.vernac->pp1 (coercion Name SRC TGT) (box h [str "#[reversible] Coercion ", str Name, str " : ", str S, str " >-> ", str T, str "."]) :-
365365
coq.gref->path SRC SP, std.string.concat "." {std.take-last 2 SP} S', S is S' ^ "." ^ {coq.gref->id SRC},
366366
if2 (TGT = sortclass) (T = "Sortclass")
367367
(TGT = funclass) (T = "Funclass")
@@ -446,8 +446,8 @@ coq.vernac->ppinductiveconstructor [constructor ID Arity|Ks] PP :-
446446
pred coq.vernac->ppinductiveparams i:list (pair implicit_kind term), o:list coq.pp.
447447
coq.vernac->ppinductiveparams [] [].
448448
coq.vernac->ppinductiveparams [pr Imp T|Rest] PP :-
449-
PP = [box (hov 2) [str A,str ID,str " : ", TY,str B]|PPRest],
450-
decl T Name Ty, coq.name->id Name ID, coq.term->pp Ty TY,
449+
PP = [box (hov 2) [str A,ID,str " : ", TY,str B]|PPRest],
450+
coq.term->pp T ID, decl T _ Ty, coq.term->pp Ty TY,
451451
if2 (Imp = explicit) (A = "(", B = ")")
452452
(Imp = maximal) (A = "{", B = "}")
453453
(A = "[", B = "]"),

tests/hb_pack.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ About hasA'.type.
2525

2626
Section test.
2727
Variables (G : Prop) (P : AB.type -> G).
28-
28+
(* problem with planB
2929
Goal forall T (a b : T), G.
3030
Proof.
3131
move=> T a b.
@@ -35,7 +35,7 @@ pose Tab := hasB.Build A (b,b).
3535
pose AB : AB.type := ltac:(elpi HB.pack (A) (Tab)).
3636
exact: P AB.
3737
Qed.
38-
38+
*)
3939
Goal forall T (a b : T), G.
4040
Proof.
4141
move=> T a b.

0 commit comments

Comments
 (0)