category-extras-0.44.1: Various modules and constructs inspired by category theory.Source codeContentsIndex
Control.Bifunctor.Braided
Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Synopsis
class Bifunctor p => Braided p where
braid :: p a b -> p b a
class Braided p => Symmetric p
swap :: Symmetric p => p a b -> p b a
Documentation
class Bifunctor p => Braided 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 :: p a b -> p b aSource
show/hide Instances
class Braided p => Symmetric p Source

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

 swap . swap = id
show/hide Instances
swap :: Symmetric p => p a b -> p b aSource
Produced by Haddock version 2.1.0