HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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