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.IO.PrettyPrint

Description

A simple typeclass for things to be pretty printed. Things should be pretty printable to be exported with graphviz. Different objects should be pretty printed into different strings or the graphviz export might be wrong.

Synopsis

Documentation

class PrettyPrint a where Source #

The typeclass of things that can be pretty printed.

Methods

pprint :: a -> String Source #

Instances

Instances details
PrettyPrint Char Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Char -> String Source #

PrettyPrint Double Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Double -> String Source #

PrettyPrint Int Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Int -> String Source #

PrettyPrint Natural Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Natural -> String Source #

PrettyPrint PureSet Source # 
Instance details

Defined in Math.IO.PrettyPrint

PrettyPrint Text Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Text -> String Source #

PrettyPrint V Source # 
Instance details

Defined in Math.FiniteCategories.V

Methods

pprint :: V -> String Source #

PrettyPrint VAr Source # 
Instance details

Defined in Math.FiniteCategories.V

Methods

pprint :: VAr -> String Source #

PrettyPrint VOb Source # 
Instance details

Defined in Math.FiniteCategories.V

Methods

pprint :: VOb -> String Source #

PrettyPrint Square Source # 
Instance details

Defined in Math.FiniteCategories.Square

Methods

pprint :: Square -> String Source #

PrettyPrint SquareAr Source # 
Instance details

Defined in Math.FiniteCategories.Square

PrettyPrint SquareOb Source # 
Instance details

Defined in Math.FiniteCategories.Square

PrettyPrint Parallel Source # 
Instance details

Defined in Math.FiniteCategories.Parallel

PrettyPrint ParallelAr Source # 
Instance details

Defined in Math.FiniteCategories.Parallel

PrettyPrint ParallelOb Source # 
Instance details

Defined in Math.FiniteCategories.Parallel

PrettyPrint One Source # 
Instance details

Defined in Math.FiniteCategories.One

Methods

pprint :: One -> String Source #

PrettyPrint Hat Source # 
Instance details

Defined in Math.FiniteCategories.Hat

Methods

pprint :: Hat -> String Source #

PrettyPrint HatAr Source # 
Instance details

Defined in Math.FiniteCategories.Hat

Methods

pprint :: HatAr -> String Source #

PrettyPrint HatOb Source # 
Instance details

Defined in Math.FiniteCategories.Hat

Methods

pprint :: HatOb -> String Source #

PrettyPrint a => PrettyPrint [a] Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: [a] -> String Source #

(PrettyPrint a, Eq a) => PrettyPrint (Set a) Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Set a -> String Source #

PrettyPrint a => PrettyPrint (Set a) Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Set a -> String Source #

PrettyPrint c => PrettyPrint (Op c) Source # 
Instance details

Defined in Math.Categories.Opposite

Methods

pprint :: Op c -> String Source #

PrettyPrint m => PrettyPrint (OpMorphism m) Source # 
Instance details

Defined in Math.Categories.Opposite

PrettyPrint (Galaxy a) Source # 
Instance details

Defined in Math.Categories.Galaxy

Methods

pprint :: Galaxy a -> String Source #

PrettyPrint a => PrettyPrint (StarIdentity a) Source # 
Instance details

Defined in Math.Categories.Galaxy

PrettyPrint (TotalOrder a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

PrettyPrint a => PrettyPrint (IsSmallerThan a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Show a => PrettyPrint (OrdinalCategory a) Source # 
Instance details

Defined in Math.Categories.OrdinalCategory

(PrettyPrint a, Eq a) => PrettyPrint (FinSet a) Source # 
Instance details

Defined in Math.Categories.FinSet

Methods

pprint :: FinSet a -> String Source #

(PrettyPrint a, Eq a) => PrettyPrint (Function a) Source # 
Instance details

Defined in Math.Categories.FinSet

Methods

pprint :: Function a -> String Source #

(PrettyPrint a, PrettyPrint b) => PrettyPrint (a, b) Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: (a, b) -> String Source #

(PrettyPrint a, Eq a, PrettyPrint b, Eq b) => PrettyPrint (Map a b) Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: Map a b -> String Source #

(PrettyPrint n, PrettyPrint e, Eq n, Eq e) => PrettyPrint (FinGrph n e) Source # 
Instance details

Defined in Math.Categories.FinGrph

Methods

pprint :: FinGrph n e -> String Source #

(PrettyPrint n, PrettyPrint e, Eq n, Eq e) => PrettyPrint (GraphHomomorphism n e) Source # 
Instance details

Defined in Math.Categories.FinGrph

(PrettyPrint n, PrettyPrint e, Eq n, Eq e) => PrettyPrint (Graph n e) Source # 
Instance details

Defined in Math.Categories.FinGrph

Methods

pprint :: Graph n e -> String Source #

(PrettyPrint n, PrettyPrint e) => PrettyPrint (Arrow n e) Source # 
Instance details

Defined in Math.Categories.FinGrph

Methods

pprint :: Arrow n e -> String Source #

(PrettyPrint a, PrettyPrint b, Eq a, Eq b) => PrettyPrint (CompositionGraph a b) Source # 
Instance details

Defined in Math.FiniteCategories.CompositionGraph

(PrettyPrint a, PrettyPrint b, Eq a, Eq b) => PrettyPrint (CGMorphism a b) Source # 
Instance details

Defined in Math.FiniteCategories.CompositionGraph

Methods

pprint :: CGMorphism a b -> String Source #

(PrettyPrint a, PrettyPrint b, Eq a, Eq b) => PrettyPrint (SafeCompositionGraph a b) Source # 
Instance details

Defined in Math.FiniteCategories.SafeCompositionGraph

(PrettyPrint a, PrettyPrint b, Eq a, Eq b) => PrettyPrint (SCGMorphism a b) Source # 
Instance details

Defined in Math.FiniteCategories.SafeCompositionGraph

Methods

pprint :: SCGMorphism a b -> String Source #

(PrettyPrint a, PrettyPrint b, PrettyPrint c) => PrettyPrint (a, b, c) Source # 
Instance details

Defined in Math.IO.PrettyPrint

Methods

pprint :: (a, b, c) -> String Source #

(PrettyPrint c, PrettyPrint m, PrettyPrint o, Eq o) => PrettyPrint (InheritedFullSubcategory c m o) Source # 
Instance details

Defined in Math.FiniteCategories.FullSubcategory

(PrettyPrint c, PrettyPrint m, PrettyPrint o, Eq o) => PrettyPrint (FullSubcategory c m o) Source # 
Instance details

Defined in Math.FiniteCategories.FullSubcategory

Methods

pprint :: FullSubcategory c m o -> String Source #

(PrettyPrint c, PrettyPrint m, PrettyPrint o, Eq o, Eq m) => PrettyPrint (InheritedSubcategory c m o) Source # 
Instance details

Defined in Math.FiniteCategories.Subcategory

(PrettyPrint c, PrettyPrint m, PrettyPrint o, Eq o, Eq m) => PrettyPrint (Subcategory c m o) Source # 
Instance details

Defined in Math.FiniteCategories.Subcategory

Methods

pprint :: Subcategory c m o -> String Source #

(PrettyPrint o1, PrettyPrint o2, PrettyPrint m3) => PrettyPrint (CommaObject o1 o2 m3) Source # 
Instance details

Defined in Math.Categories.CommaCategory

Methods

pprint :: CommaObject o1 o2 m3 -> String Source #

(PrettyPrint m1, PrettyPrint m2) => PrettyPrint (CommaMorphism o1 o2 m1 m2 m3) Source # 
Instance details

Defined in Math.Categories.CommaCategory

Methods

pprint :: CommaMorphism o1 o2 m1 m2 m3 -> String Source #

(PrettyPrint c1, PrettyPrint c2) => PrettyPrint (FunctorCategory c1 m1 o1 c2 m2 o2) Source # 
Instance details

Defined in Math.Categories.FunctorCategory

Methods

pprint :: FunctorCategory c1 m1 o1 c2 m2 o2 -> String Source #

(PrettyPrint c1, PrettyPrint m1, PrettyPrint o1, Eq m1, Eq o1, PrettyPrint c2, PrettyPrint m2, PrettyPrint o2, Eq m2, Eq o2) => PrettyPrint (NaturalTransformation c1 m1 o1 c2 m2 o2) Source # 
Instance details

Defined in Math.Categories.FunctorCategory

Methods

pprint :: NaturalTransformation c1 m1 o1 c2 m2 o2 -> String Source #

(PrettyPrint c1, PrettyPrint m1, PrettyPrint o1, Eq m1, Eq o1, PrettyPrint c2, PrettyPrint m2, PrettyPrint o2, Eq m2, Eq o2) => PrettyPrint (Diagram c1 m1 o1 c2 m2 o2) Source # 
Instance details

Defined in Math.Categories.FunctorCategory

Methods

pprint :: Diagram c1 m1 o1 c2 m2 o2 -> String Source #

(PrettyPrint c1, PrettyPrint c2, PrettyPrint m2, PrettyPrint o2, Eq m2, Eq o2, PrettyPrint c3, PrettyPrint m3, PrettyPrint o3, Eq m3, Eq o3) => PrettyPrint (PostcomposedFunctorCategory c1 m1 o1 c2 m2 o2 c3 m3 o3) Source # 
Instance details

Defined in Math.Categories.FunctorCategory

Methods

pprint :: PostcomposedFunctorCategory c1 m1 o1 c2 m2 o2 c3 m3 o3 -> String Source #

(PrettyPrint c1, PrettyPrint m1, PrettyPrint o1, Eq m1, Eq o1, PrettyPrint c2, PrettyPrint m2, PrettyPrint o2, Eq m2, Eq o2, PrettyPrint c3) => PrettyPrint (PrecomposedFunctorCategory c1 m1 o1 c2 m2 o2 c3 m3 o3) Source # 
Instance details

Defined in Math.Categories.FunctorCategory

Methods

pprint :: PrecomposedFunctorCategory c1 m1 o1 c2 m2 o2 c3 m3 o3 -> String Source #

pprintFunction :: (PrettyPrint a, PrettyPrint b) => (a -> b) -> [a] -> String Source #

Pretty print a function on a specific domain.