Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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