HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleadjunctions-4.4.3Haskell2010

Data.Functor.Contravariant.Adjunction

  • 1 class
  • 3 values
  • Packageadjunctions-4.4.3
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceAdjunction.hs
classclass (Contravariant f, Representable g) => Adjunction (f :: Type -> Type) (g :: Type -> Type) | f -> g, g -> f where
#

An adjunction from Hask^op to Hask

Op (f a) b ~ Hask a (g b)
rightAdjunct unit = id
leftAdjunct counit = id

Any adjunction from Hask to Hask^op would indirectly permit unsafePerformIO, and therefore does not exist.

Methods

Instances2Adjunction