HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleadjunctions-4.4.3Haskell2010

Data.Functor.Contravariant.Rep

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

  • 1 class
  • 2 values

Representable Contravariant Functors

2 declarations
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

1 declaration