Skip to content

Commit f0da0e2

Browse files
committed
Ignore unfolding flag when comparing projections
1 parent 6f9fb6d commit f0da0e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/rocq_elpi_utils.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,12 @@ let (projectionc, projection) : Names.Projection.t Elpi.API.RawOpaqueData.cdata
287287
name = "projection";
288288
doc = "";
289289
pp = (fun fmt i -> Format.fprintf fmt "%s" (Names.Projection.to_string i));
290-
compare = Names.Projection.CanOrd.compare;
291-
hash = Names.Projection.CanOrd.hash;
290+
compare =
291+
(let open Names.Projection in
292+
fun x y -> Repr.CanOrd.compare (repr x) (repr y));
293+
hash =
294+
(let open Names.Projection in
295+
fun x -> Repr.CanOrd.hash (repr x));
292296
hconsed = false;
293297
constants = [];
294298
}

0 commit comments

Comments
 (0)