Skip to content

Commit

Permalink
[ compat ] base now has quantity 0 for cong's argument (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
gallais authored Sep 25, 2023
1 parent 7a6953f commit 5d0d081
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/Case/Builder.idr
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ conTypeEq (CName x tag) (CName x' tag')
Yes Refl => Just Refl
No contra => Nothing
conTypeEq CDelay CDelay = Just Refl
conTypeEq (CConst x) (CConst y) = cong CConst <$> constantEq x y
conTypeEq (CConst x) (CConst y) = (\ eq => cong CConst eq) <$> constantEq x y
conTypeEq _ _ = Nothing

data Group : SnocList Name -> -- variables in scope
Expand Down
2 changes: 1 addition & 1 deletion src/Core/TT/Name.idr
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ nameEq (NS xs x) (NS ys y) with (decEq xs ys)
nameEq (NS ys x) (NS ys y) | (Yes Refl) | Nothing = Nothing
nameEq (NS ys y) (NS ys y) | (Yes Refl) | (Just Refl) = Just Refl
nameEq (NS xs x) (NS ys y) | (No contra) = Nothing
nameEq (UN x) (UN y) = map (cong UN) (userNameEq x y)
nameEq (UN x) (UN y) = map (\ eq => cong UN eq) (userNameEq x y)
nameEq (MN x t) (MN x' t') with (decEq x x')
nameEq (MN x t) (MN x t') | (Yes Refl) with (decEq t t')
nameEq (MN x t) (MN x t) | (Yes Refl) | (Yes Refl) = Just Refl
Expand Down
2 changes: 1 addition & 1 deletion src/Core/TT/TT.idr
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ constantEq (Ch x) (Ch y) = case decEq x y of
Yes Refl => Just Refl
No contra => Nothing
constantEq (Db x) (Db y) = Nothing -- no DecEq for Doubles!
constantEq (PrT x) (PrT y) = cong PrT <$> primTypeEq x y
constantEq (PrT x) (PrT y) = (\ eq => cong PrT eq) <$> primTypeEq x y
constantEq WorldVal WorldVal = Just Refl
constantEq _ _ = Nothing

Expand Down

0 comments on commit 5d0d081

Please sign in to comment.