| Copyright | (C) 2011-2016 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Data.Distributive.Generic
Description
- class GDistributive g where
- genericDistribute :: (Functor f, Generic1 g, GDistributive (Rep1 g)) => f (g a) -> g (f a)
Documentation
class GDistributive g where Source #
Minimal complete definition
Methods
gdistribute :: Functor f => f (g a) -> g (f a) Source #
Instances
| GDistributive U1 Source # | |
| GDistributive Par1 Source # | |
| GDistributive f => GDistributive (Rec1 f) Source # | |
| (GDistributive a, GDistributive b) => GDistributive ((:*:) a b) Source # | |
| (Functor a, GDistributive a, GDistributive b) => GDistributive ((:.:) a b) Source # | |
| GDistributive f => GDistributive (M1 i c f) Source # | |
genericDistribute :: (Functor f, Generic1 g, GDistributive (Rep1 g)) => f (g a) -> g (f a) Source #