kan-extensions-5.2.5: Kan extensions, Kan lifts, the Yoneda lemma, and (co)density (co)monads
Copyright (C) 2013-2016 Edward Kmett
License BSD-style (see the file LICENSE)
Maintainer Edward Kmett <ekmett@gmail.com>
Stability provisional
Portability GADTs, TFs, MPTCs
Safe Haskell Trustworthy
Language Haskell2010

Data.Functor.Contravariant.Coyoneda

Description

The co-Yoneda lemma for presheafs states that f is naturally isomorphic to Coyoneda f .

Synopsis

Documentation

liftCoyoneda :: f a -> Coyoneda f a Source #

Coyoneda "expansion" of a presheaf

liftCoyoneda . lowerCoyonedaid
lowerCoyoneda . liftCoyonedaid

lowerCoyoneda :: Contravariant f => Coyoneda f a -> f a Source #

Coyoneda reduction on a presheaf

hoistCoyoneda :: ( forall a. f a -> g a) -> Coyoneda f b -> Coyoneda g b Source #

Lift a natural transformation from f to g to a natural transformation from Coyoneda f to Coyoneda g .