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.Rep

Contents
  1. Representable Profunctors
  2. Corepresentable Profunctors
  3. Prep -| Star
  4. Coprep -| Costar
Synopsis

Representable Profunctors

classclass (Sieve p (Rep p), Strong p) => Representable (p :: Type -> Type -> Type) where

A Profunctor p is Representable if there exists a Functor f such that p d c is isomorphic to d -> f c.

Associated types

Methods

Instances5Representable

Corepresentable Profunctors

classclass (Cosieve p (Corep p), Costrong p) => Corepresentable (p :: Type -> Type -> Type) where

A Profunctor p is Corepresentable if there exists a Functor f such that p d c is isomorphic to f d -> c.

Associated types

Methods

Instances5Corepresentable

Prep -| Star

datadata Prep (p :: Type -> k -> Type) (a :: k) where
Prep -| Star :: [Hask, Hask] -> Prof

This gives rise to a monad in Prof, (Star.Prep), and a comonad in [Hask,Hask] (Prep.Star)

Prep has a polymorphic kind since 5.6.

Constructors

Instances3Monad, Functor, Applicative

Coprep -| Costar