HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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