mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
14 lines
240 B
Idris
14 lines
240 B
Idris
data Fin : Nat -> Type where
|
|
FZ : Fin (S k)
|
|
FS : Fin k -> Fin (S k)
|
|
|
|
noFinZ : Fin Z -> Void
|
|
noFinZ FZ impossible
|
|
noFinZ (FS k) impossible
|
|
|
|
noFinZ' : Fin Z -> Void
|
|
noFinZ' x impossible
|
|
|
|
noEmpty : Void -> Fin Z
|
|
noEmpty t impossible
|