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

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 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