Module Data.Coproduct

co-product

Imports

Table of Content

Definitions

data Coproduct f g a

Constructors

Inl (f a)
Inr (g a)

Instances

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

Member Functions

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

Functions and Values by Type

f a → Coproduct f g a

Coproduct.Inl

g a → Coproduct f g a

Coproduct.Inr

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

Functor_Coproduct.fmap

Valid HTML 4.01 Strict