HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleprofunctors-5.6.3Haskell2010

Data.Profunctor.Composition

Contents
  1. Profunctor Composition
  2. Unitors and Associator
  3. Categories as monoid objects
  4. Generalized Composition
  5. Right Kan Lift
Synopsis
  • Packageprofunctors-5.6.3
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceComposition.hs

Profunctor Composition

datadata Procompose (p :: k -> k1 -> Type) (q :: k2 -> k -> Type) (d :: k2) (c :: k1) where

Procompose p q is the Profunctor composition of the Profunctors p and q.

For a good explanation of Profunctor composition in Haskell see Dan Piponi's article:

http://blog.sigfpe.com/2011/07/profunctors-in-haskell.html

Procompose has a polymorphic kind since 5.6.

Constructors

Instances17ProfunctorFunctor, ProfunctorMonad, ProfunctorAdjunction, Choice, Closed, Mapping, …

Unitors and Associator

Categories as monoid objects

Generalized Composition

Right Kan Lift

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

This represents the right Kan lift 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.

Rift has a polymorphic kind since 5.6.

Constructors

Instances6ProfunctorFunctor, Category, ProfunctorComonad, ProfunctorAdjunction, Profunctor, Functor