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

Modulekan-extensions-5.2.7Haskell2010

Data.Functor.Yoneda

The covariant form of the Yoneda lemma states that f is naturally isomorphic to Yoneda f.

This is described in a rather intuitive fashion by Dan Piponi in

http://blog.sigfpe.com/2006/11/yoneda-lemma.html

  • 1 type
  • 8 values
newtypenewtype Yoneda (f :: Type -> Type) a
#

Yoneda f a can be viewed as the partial application of fmap to its second argument.

Constructors

Instances31MonadTrans, ComonadTrans, MonadFree, Monad, Functor, MonadFix, …

as a right Kan extension

2 declarations