data-category-0.2.0: Restricted categories

Portabilitynon-portable
Stabilityexperimental
Maintainersjoerd@w3future.com

Data.Category.Discrete

Description

Discrete n, the category with n objects, and as the only arrows their identities.

Synopsis

Documentation

data Z Source

Instances

data S n Source

Constructors

S n 

Instances

data Discrete whereSource

The arrows in Discrete n, a finite set of identity arrows.

Constructors

IdZ :: Discrete (S n) Z Z 
StepS :: Discrete n a a -> Discrete (S n) (S a) (S a) 

Instances

magicZ :: Discrete Z a b -> xSource

data Next whereSource

Constructors

Next :: (Functor f, Dom f ~ Discrete (S n)) => f -> Next n f 

Instances

Functor (Next n f) 

data DiscreteDiagram whereSource

Constructors

Nil :: DiscreteDiagram ~> Z () 
::: :: Category ~> => Obj ~> x -> DiscreteDiagram ~> n xs -> DiscreteDiagram ~> (S n) (x, xs) 

Instances