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

Math.FiniteCategories.One

Description

The 1 category contains one object and its identity.

You can construct it using NumberCategory, it is defined as a standalone category because it is often used unlike other number categories.

Synopsis

Documentation

data One Source #

One is a datatype used as the object type, the morphism type and the category type of 1.

Constructors

One 

Instances

Instances details
Eq One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

(==) :: One -> One -> Bool

(/=) :: One -> One -> Bool

Show One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

showsPrec :: Int -> One -> ShowS

show :: One -> String

showList :: [One] -> ShowS

PrettyPrint One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

pprint :: One -> String Source #

Morphism One One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

(@?) :: One -> One -> Maybe One Source #

source :: One -> One Source #

target :: One -> One Source #

Category One One One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

identity :: One -> One -> One Source #

ar :: One -> One -> One -> Set One Source #

genAr :: One -> One -> One -> Set One Source #

decompose :: One -> One -> [One] Source #

FiniteCategory One One One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

ob :: One -> Set One Source #