Skip to content

Commit

Permalink
[ compat ] adjust to upstream changes (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-hoeck authored Jul 14, 2023
1 parent e3d8cdc commit cf727a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Solutions/Eq.idr
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sctCong f SameCT = Refl

natEq : (n1,n2 : Nat) -> Maybe (n1 = n2)
natEq 0 0 = Just Refl
natEq (S k) (S j) = cong S <$> natEq k j
natEq (S k) (S j) = (\x => cong S x) <$> natEq k j
natEq (S k) 0 = Nothing
natEq 0 (S _) = Nothing

Expand Down Expand Up @@ -237,7 +237,7 @@ ctNatInjective Float Float Refl = Refl
DecEq ColType where
decEq c1 c2 = case decEq (ctNat c1) (ctNat c2) of
Yes prf => Yes $ ctNatInjective c1 c2 prf
No contra => No $ contra . cong ctNat
No contra => No $ \x => contra $ cong ctNat x

--------------------------------------------------------------------------------
-- Rewrite Rules
Expand Down
2 changes: 1 addition & 1 deletion src/Tutorial/Eq.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ Actually, this is just a specialized version of the contraposition of

```idris
contraCong : {0 f : _} -> Not (f a = f b) -> Not (a = b)
contraCong fun = fun . cong f
contraCong fun x = fun $ cong f x
```

### Interface `Uninhabited`
Expand Down
2 changes: 1 addition & 1 deletion src/Tutorial/Prim.md
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ utility functions:

```idris
data IsYes0 : (d : Dec0 prop) -> Type where
ItIsYes0 : IsYes0 (Yes0 prf)
ItIsYes0 : {0 prf : _} -> IsYes0 (Yes0 prf)
0 fromYes0 : (d : Dec0 prop) -> (0 prf : IsYes0 d) => prop
fromYes0 (Yes0 x) = x
Expand Down

0 comments on commit cf727a0

Please sign in to comment.