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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleadjunctions-4.4.4Haskell2010

Data.Functor.Contravariant.Rep

Representable contravariant endofunctors over the category of Haskell types are isomorphic to (_ -> r) and resemble mappings to a fixed range.

Contents
  1. Representable Contravariant Functors
  2. Default definitions
Synopsis

Representable Contravariant Functors

classclass Contravariant f => Representable (f :: Type -> Type) where

A Contravariant functor f is Representable if tabulate and index witness an isomorphism to (_ -> Rep f).

tabulate . index ≡ id
index . tabulate ≡ id

Associated types

Methods

Instances6Representable

Default definitions