Create Data.Profunctor.Yoneda
This commit is contained in:
parent
14d392c021
commit
fec58179c6
1 changed files with 11 additions and 0 deletions
11
Data/Profunctor/Yoneda.idr
Normal file
11
Data/Profunctor/Yoneda.idr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module Data.Profunctor.Yoneda
|
||||
|
||||
import Data.Profunctor
|
||||
|
||||
%default total
|
||||
|
||||
|
||||
public export
|
||||
record Yoneda p a b where
|
||||
constructor MkYoneda
|
||||
runYoneda : forall x, y. (x -> a) -> (b -> y) -> p x y
|
||||
Loading…
Add table
Add a link
Reference in a new issue