Idris2/tests/idris2/interface/interface011/FuncImpl.idr
2023-09-07 14:57:22 +01:00

8 lines
245 B
Idris

module FuncImpl
public export
interface Monad m => FooBar m where
Foo : {A : Type} -> A -> m A -> Type
bar : {A : Type} -> (ma : m A) -> m (DPair A (\ a => Foo a ma))
foobar : {A : Type} -> (ma : m A) -> map DPair.fst (bar ma) = ma