HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleprofunctors-5.6.3Haskell2010

Data.Profunctor.Ran

Synopsis
newtypenewtype Ran (p :: k -> k1 -> Type) (q :: k -> k2 -> Type) (a :: k1) (b :: k2)

This represents the right Kan extension of a Profunctor q along a Profunctor p in a limited version of the 2-category of Profunctors where the only object is the category Hask, 1-morphisms are profunctors composed and compose with Profunctor composition, and 2-morphisms are just natural transformations.

Ran has a polymorphic kind since 5.6.

Constructors

  • Ran
    • runRan :: forall (x :: k1). p x a -> q x b
Instances5ProfunctorFunctor, Category, ProfunctorComonad, Profunctor, Functor
newtypenewtype Codensity (p :: k -> k1 -> Type) (a :: k1) (b :: k1)

This represents the right Kan extension of a Profunctor p along itself. This provides a generalization of the "difference list" trick to profunctors.

Codensity has a polymorphic kind since 5.6.

Constructors

Instances3Category, Profunctor, Functor