HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleadjunctions-4.4.4Haskell2010

Data.Functor.Contravariant.Adjunction

Synopsis
  • Packageadjunctions-4.4.4
  • 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