Idris2-boot/tests/idris2/interface011/FuncImpl.idr

9 lines
246 B
Idris
Raw Normal View History

2019-07-27 01:13:11 +03:00
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