FiniteCategories-0.1.0.0: Finite categories and usual categorical constructions on them.
CopyrightGuillaume Sabbagh 2021
LicenseGPL-3
Maintainerguillaumesabbagh@protonmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

UsualCategories.DiscreteCategory

Description

A discrete category is a category with no morphism other than identities.

Synopsis

Documentation

data DiscreteObject a Source #

A discrete object is just an usual object.

Constructors

DiscreteObject a 

Instances

Instances details
Eq a => Eq (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Methods

(==) :: DiscreteObject a -> DiscreteObject a -> Bool

(/=) :: DiscreteObject a -> DiscreteObject a -> Bool

Show a => Show (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Methods

showsPrec :: Int -> DiscreteObject a -> ShowS

show :: DiscreteObject a -> String

showList :: [DiscreteObject a] -> ShowS

PrettyPrintable a => PrettyPrintable (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => Morphism (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => GeneratedFiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => FiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

data DiscreteIdentity a Source #

DiscreteIdentity is the morphism of the discrete category.

Constructors

DiscreteIdentity a 

Instances

Instances details
Eq a => Eq (DiscreteIdentity a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Show a => Show (DiscreteIdentity a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Methods

showsPrec :: Int -> DiscreteIdentity a -> ShowS

show :: DiscreteIdentity a -> String

showList :: [DiscreteIdentity a] -> ShowS

PrettyPrintable a => PrettyPrintable (DiscreteIdentity a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => Morphism (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => GeneratedFiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => FiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

data DiscreteCategory a Source #

The discrete category is just a list of objects.

Constructors

DiscreteCategory [a] 

Instances

Instances details
Eq a => Eq (DiscreteCategory a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Show a => Show (DiscreteCategory a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Methods

showsPrec :: Int -> DiscreteCategory a -> ShowS

show :: DiscreteCategory a -> String

showList :: [DiscreteCategory a] -> ShowS

PrettyPrintable a => PrettyPrintable (DiscreteCategory a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => GeneratedFiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory

Eq a => FiniteCategory (DiscreteCategory a) (DiscreteIdentity a) (DiscreteObject a) Source # 
Instance details

Defined in UsualCategories.DiscreteCategory