Copyright | Guillaume Sabbagh 2022 |
---|---|
License | GPL-3 |
Maintainer | guillaumesabbagh@protonmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
(Eq m, Eq o) => Eq (FiniteCategoryError m o) Source # | |
Defined in Math.FiniteCategoryError (==) :: FiniteCategoryError m o -> FiniteCategoryError m o -> Bool (/=) :: FiniteCategoryError m o -> FiniteCategoryError m o -> Bool | |
(Show m, Show o) => Show (FiniteCategoryError m o) Source # | |
Defined in Math.FiniteCategoryError 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.