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

Modulererebase-1.21.2Haskell2010

Data.Functor.Product

  • 1 type
  • Packagererebase-1.21.2
  • Exports1
  • LanguageHaskell2010
  • LicenceMIT
  • SourceProduct.hs
datadata Product (f :: k -> Type) (g :: k -> Type) (a :: k)
#

Lifted product of functors.

Examples
Example1 expression
fmap (+1) (Pair [1, 2, 3] (Just 0))Pair [2,3,4] (Just 1)
Example1 expression
Pair "Hello, " (Left 'x') <> Pair "World" (Right 'y')Pair "Hello, World" (Right 'y')

Constructors

Instances63Generic1, FoldableWithIndex, FunctorWithIndex, TraversableWithIndex, Monad, Functor, …