| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Functor.Composition.Distributive
Synopsis
- class Covariant u => Distributive u where
Documentation
class Covariant u => Distributive u where Source #
Let f :: Distributive g => (a -> g b)
When providing a new instance, you should ensure it satisfies the two laws: * Identity morphism: distribute . distribute ≡ identity * Interchange collection: collect f ≡ distribute . comap f
Minimal complete definition