hask-0: Categories
Hask.Adjunction
class (Functor f, Functor g, Dom f ~ Cod g, Cod g ~ Dom f) => f -| g | f -> g, g -> f where Source
Methods
adj :: Iso (->) (->) (->) (Cod f (f a) b) (Cod f (f a') b') (Cod g a (g b)) (Cod g a' (g b')) Source
Instances
swap :: (a, b) -> (b, a) Source
class (Bifunctor p, Bifunctor q) => Curried p q | p -> q, q -> p where Source
curried :: Iso (->) (->) (->) (Dom2 p (p a b) c) (Dom2 p (p a' b') c') (Dom2 q a (q b c)) (Dom2 q a' (q b' c')) Source