Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class (Covariant t, Covariant u) => Adjoint t u where Source #
When providing a new instance, you should ensure it satisfies the four laws: * Left adjunction identity: phi counit ≡ identity * Right adjunction identity: psi unit ≡ identity * Left adjunction interchange: phi f ≡ comap f . eta * Right adjunction interchange: psi f ≡ epsilon . comap f
phi :: (t a -> b) -> a -> u b Source #
Left adjunction
psi :: (a -> u b) -> t a -> b Source #
Right adjunction
Instances
Adjoint Identity Identity Source # | |
(Extractable t, Pointable t, Extractable u, Pointable u) => Adjoint (Yoneda t) (Yoneda u) Source # | |
Adjoint (Product a) ((->) a :: Type -> Type) Source # | |
(t :-|: u, v :-|: w) => Adjoint (U Co Co t v) (U Co Co u w) Source # | |
(t :-|: w, v :-|: x, u :-|: y) => Adjoint (UU Co Co Co t v u) (UU Co Co Co w x y) Source # | |
Defined in Pandora.Paradigm.Junction.Composition | |
(t :-|: u, v :-|: w, q :-|: q, r :-|: s) => Adjoint (UUU Co Co Co Co t v q r) (UUU Co Co Co Co u w q s) Source # | |
Defined in Pandora.Paradigm.Junction.Composition phi :: (UUU Co Co Co Co t v q r a -> b) -> a -> UUU Co Co Co Co u w q s b Source # psi :: (a -> UUU Co Co Co Co u w q s b) -> UUU Co Co Co Co t v q r a -> b Source # eta :: a -> (UUU Co Co Co Co u w q s :.: UUU Co Co Co Co t v q r) a Source # epsilon :: (UUU Co Co Co Co t v q r :.: UUU Co Co Co Co u w q s) a -> a Source # |