Skip to content

Commit

Permalink
Be explicit about where erasure is actually needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkerber committed Dec 15, 2023
1 parent 2b7edd7 commit 1830fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/nat.agda
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# OPTIONS --erasure #-}

data Nat : Set where
Zero : Nat
Succ : Nat Nat
Expand All @@ -6,7 +8,7 @@ add : Nat → Nat → Nat
add n Zero = n
add n (Succ m) = Succ (add n m)

data Eq {A : Set} (a : A) : A Set where
data Eq {A : Set} (@0 a : A) : @0 A Set where
Refl : Eq a a

cong : {A B : Set} {a b : A} (f : A B) Eq a b Eq (f a) (f b)
Expand Down

0 comments on commit 1830fbc

Please sign in to comment.