| Portability | non-portable (class-associated types) |
|---|---|
| Stability | experimental |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
Control.Category.Distributive
Contents
Description
- factor :: (PreCartesian ~>, PreCoCartesian ~>) => Sum ~> (Product ~> a b) (Product ~> a c) ~> Product ~> a (Sum ~> b c)
- class (PreCartesian ~>, PreCoCartesian ~>) => Distributive (~>) where
Distributive Categories
factor :: (PreCartesian ~>, PreCoCartesian ~>) => Sum ~> (Product ~> a b) (Product ~> a c) ~> Product ~> a (Sum ~> b c)Source
the canonical factoring morphism
factor :: ( PreCartesian (~>)
, (*) ~ Product (~>)
, PreCoCartesian (~>)
, (+) ~ Sum (~>)
) => ((a * b) + (a * c)) ~> (a * (b + c))
class (PreCartesian ~>, PreCoCartesian ~>) => Distributive (~>) whereSource
Instances
| Distributive (->) |