HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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