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

Control.Monad.Trans.Contravariant.Adjoint

Uses a contravariant adjunction:

f -| g : Hask^op -> Hask

to build a Comonad to Monad transformer. Sadly, the dual construction, which builds a Comonad out of a Monad, is uninhabited, because any Adjunction of the form

f -| g : Hask -> Hask^op

would trivially admit unsafePerformIO.

  • 2 types
  • 2 values
  • Packageadjunctions-4.4.3
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceAdjoint.hs
newtypenewtype AdjointT (f :: Type -> Type) (g :: Type -> Type) (w :: Type -> Type) a
#

Constructors

Instances3Monad, Functor, Applicative