Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class (Covariant t, Covariant u) => Adjoint t u | t -> u, u -> t 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