Module Data.Product

A pair of two applicative functors, both applied to the same type

Imports

Table of Content

Definitions

data Product f g a

Constructors

Prod (f a)   (g a)
product(α γ, β γ)Product α β γ

view a tuple as Product

unproductProduct α β γ → (α γ, β γ)

make a tuple from a Product

Instances

instance (Functor f, Functor g) ⇒ Functor (Product f g)

Member Functions

fmap ∷ (Functor β, Functor α) ⇒ (γ → δ) → Product β α γProduct β α δ
infixl  4

Functions and Values by Type

Product α β γ → (α γ, β γ)

unproduct

(α γ, β γ) → Product α β γ

product

f a → g a → Product f g a

Product.Prod

(Functor β, Functor α) ⇒ (γ → δ) → Product β α γ → Product β α δ

Functor_Product.fmap

Valid HTML 4.01 Strict