mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 15:52:43 +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
265 B
Idris
14 lines
265 B
Idris
import Control.Monad.Identity
|
|
|
|
public export
|
|
interface Foo (sA : Type) where
|
|
A : Type
|
|
Elem : A -> sA -> Type
|
|
Empty : sA -> Type
|
|
Empty as = (a : A) -> Not (Elem a as)
|
|
|
|
public export
|
|
implementation Foo (Identity Bool) where
|
|
A = Bool
|
|
Elem x (Id y) = x = y
|