stop throwing names away

This commit is contained in:
rhiannon morris 2023-09-17 19:06:07 +02:00
parent 7bd959e919
commit 4c88918ade
2 changed files with 9 additions and 9 deletions

View file

@ -145,7 +145,7 @@ CanWhnf Elim Interface.isRedexE where
--
-- [fixme] needs a real equality check between A0/𝑖 and A1/𝑖
case dsqueeze sty {f = Term} of
Left ([< i], ty) =>
([< i], Left ty) =>
case p `decEqv` q of
-- coe (𝑖 ⇒ A) @p @p s ⇝ (s ∷ Ap/𝑖)
Yes _ => whnf defs ctx $ Ann val (dsub1 sty p) coeLoc
@ -155,7 +155,7 @@ CanWhnf Elim Interface.isRedexE where
Left pc => pushCoe defs ctx i ty p q val coeLoc
Right npc => pure $ Element (Coe (SY [< i] ty) p q val coeLoc)
(tynf `orNo` npc `orNo` notYesNo npq)
Right ty =>
(_, Right ty) =>
whnf defs ctx $ Ann val ty coeLoc
whnf defs ctx (Comp ty p q val r zero one compLoc) =