| Copyright | Guillaume Sabbagh 2022 |
|---|---|
| License | GPL-3 |
| Maintainer | guillaumesabbagh@protonmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Math.FiniteCategoryError
Contents
Description
Provide a function to test the structure of a FiniteCategory.
Synopsis
- data FiniteCategoryError m o
- checkFiniteCategory :: (FiniteCategory c m o, Morphism m o, Eq m, Eq o) => c -> Maybe (FiniteCategoryError m o)
Check structure
data FiniteCategoryError m o Source #
A data type to represent an incoherence inside a finite category.
Instances
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.