data-category-0.2.0: Restricted categories

Portabilitynon-portable
Stabilityexperimental
Maintainersjoerd@w3future.com

Data.Category.Pair

Description

Pair, the category with just 2 objects and their identity arrows. The limit and colimit of the functor from Pair to some category provide products and coproducts in that category.

Synopsis

Documentation

data P1 Source

data P2 Source

data Pair whereSource

The arrows of Pair.

Constructors

IdFst :: Pair P1 P1 
IdSnd :: Pair P2 P2 

data PairDiagram whereSource

The functor from Pair to (~>), a diagram of 2 objects in (~>).

Constructors

PairDiagram :: Category ~> => Obj ~> x -> Obj ~> y -> PairDiagram ~> x y 

Instances

Functor (PairDiagram ~> x y) 

pairNat :: (Functor f, Functor g, Dom f ~ Pair, Cod f ~ d, Dom g ~ Pair, Cod g ~ d) => f -> g -> Com f g P1 -> Com f g P2 -> Nat Pair d f gSource

arrowPair :: Category ~> => (x1 ~> x2) -> (y1 ~> y2) -> Nat Pair ~> (PairDiagram ~> x1 y1) (PairDiagram ~> x2 y2)Source