mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 07:34:45 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
13 lines
238 B
Idris
13 lines
238 B
Idris
data Foo : Type -> Type where
|
|
IsNat : Foo Nat
|
|
IsBool : Foo Bool
|
|
|
|
okay : a -> Foo a -> Bool
|
|
okay Z IsNat = False
|
|
okay True IsBool = True
|
|
|
|
bad : a -> Foo a -> Bool
|
|
bad Z IsNat = False
|
|
bad True IsBool = True
|
|
bad (Just 0) _ = False
|