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.FiniteCategoryError

Description

Provide a function to test the structure of a FiniteCategory.

Synopsis

Check structure

data FiniteCategoryError m o Source #

A data type to represent an incoherence inside a finite category.

Instances

Instances details
(Eq m, Eq o) => Eq (FiniteCategoryError m o) Source # 
Instance details

Defined in Math.FiniteCategoryError

(Show m, Show o) => Show (FiniteCategoryError m o) Source # 
Instance details

Defined in Math.FiniteCategoryError

Methods

showsPrec :: Int -> FiniteCategoryError m o -> ShowS

show :: FiniteCategoryError m o -> String

showList :: [FiniteCategoryError m o] -> ShowS

checkFiniteCategory :: (FiniteCategory c m o, Morphism m o, Eq m, Eq o) => c -> Maybe (FiniteCategoryError m o) Source #

Checks the category axioms for a FiniteCategory.

If an error is found in the category, Just a FiniteCategoryError is returned. Otherwise, Nothing is returned.