category-traced-0.1.0.0: Traced monoidal categories

Safe HaskellSafe
LanguageHaskell2010

Control.Category.Traced

Synopsis

Documentation

class (Symmetric k p, Monoidal k p) => Traced k p where Source

Laws:

  • Pre-naturality: trace f . g = trace (f . first g)
  • Post-naturality: g . trace f = trace (first g . f)
  • Dinaturality: trace (second g . f) = trace (f . second g)

TODO: figure out how to write remaining laws in Haskell syntax

Methods

trace :: (p a c `k` p b c) -> a `k` b Source

Instances