HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleadjunctions-4.4.4Haskell2010

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.4
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceAdjoint.hs
newtypenewtype AdjointT (f :: Type -> Type) (g :: Type -> Type) (w :: Type -> Type) a
#

Constructors

Instances3Monad, Functor, Applicative