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

Modulebase-compat-0.14.1Haskell2010

Data.Functor.Product.Compat

  • 1 type
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

Instances28Generic1, Monad, Functor, MonadFix, Applicative, Foldable, …