idris2-profunctors/Data/Profunctor/Sieve.idr

16 lines
279 B
Idris
Raw Normal View History

2023-03-06 21:37:27 -05:00
module Data.Profunctor.Sieve
import Data.Profunctor
%default total
public export
interface (Profunctor p, Functor f) => Sieve p f | p where
sieve : p a b -> a -> f b
public export
interface (Profunctor p, Functor f) => Cosieve p f | p where
cosieve : p a b -> f a -> b