| Copyright | 2017 Kei Hibino |
|---|---|
| License | BSD3 |
| Maintainer | ex8k.hibino@gmail.com |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Functor.ProductIsomorphic.Class
Description
This module defines functor interfaces which morphed functions are restricted to products.
- class ProductIsoFunctor f where
- class ProductIsoFunctor f => ProductIsoApplicative f where
- class ProductIsoApplicative f => ProductIsoAlternative f where
Documentation
class ProductIsoFunctor f where Source #
Restricted functor on products.
Minimal complete definition
Methods
(|$|) :: ProductConstructor (a -> b) => (a -> b) -> f a -> f b infixl 4 Source #
Instances
| Functor f => ProductIsoFunctor (WrappedFunctor f) Source # | |
| ProductIsoFunctor (WrappedAlter f a) Source # | |
class ProductIsoFunctor f => ProductIsoApplicative f where Source #
Restricted applicative functor on products.
Methods
pureP :: ProductConstructor a => a -> f a Source #
Instances
| Applicative f => ProductIsoApplicative (WrappedFunctor f) Source # | |
| Alternative f => ProductIsoApplicative (WrappedAlter f a) Source # | |
class ProductIsoApplicative f => ProductIsoAlternative f where Source #
Restricted alternative on products.
Instances