mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
9 lines
246 B
Idris
9 lines
246 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
|
|
|