Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class (FFunctor ff, FFunctor uu) => Adjunction ff uu | ff -> uu, uu -> ff where
Documentation
class (FFunctor ff, FFunctor uu) => Adjunction ff uu | ff -> uu, uu -> ff where Source #
An adjunction between \(\mathrm{Hask}^{\mathrm{Hask}}\) and \(\mathrm{Hask}^{\mathrm{Hask}}\).
unit :: forall g. Functor g => g ~> uu (ff g) Source #
counit :: forall g. Functor g => ff (uu g) ~> g Source #
leftAdjunct :: forall g h. (Functor g, Functor h) => (ff g ~> h) -> g ~> uu h Source #
rightAdjunct :: forall g h. (Functor g, Functor h) => (g ~> uu h) -> ff g ~> h Source #