category-extras-0.53.5: Various modules and constructs inspired by category theorySource codeContentsIndex
Control.Category.Braided
Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Synopsis
class Braided k p where
braid :: k (p a b) (p b a)
class Braided k p => Symmetric k p
swap :: Symmetric k p => k (p a b) (p b a)
Documentation
class Braided k p whereSource

A braided (co)(monoidal or associative) category can commute the arguments of its bi-endofunctor. Obeys the laws:

 idr . braid = idl 
 idl . braid = idr 
 braid . coidr = coidl 
 braid . coidl = coidr 
 associate . braid . associate = second braid . associate . first braid 
 coassociate . braid . coassociate = first braid . coassociate . second braid 
Methods
braid :: k (p a b) (p b a)Source
show/hide Instances
class Braided k p => Symmetric k p Source

If we have a symmetric (co)Monoidal category, you get the additional law:

 swap . swap = id
show/hide Instances
swap :: Symmetric k p => k (p a b) (p b a)Source
Produced by Haddock version 2.4.2