Copyright | 2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module defines functor instances morphed functions are restricted to products.
- newtype WrappedFunctor f a = WrapFunctor {
- unwrapFunctor :: f a
- newtype WrappedAlter f a b = WrapAlter {
- unWrapAlter :: Const (f a) b
Documentation
newtype WrappedFunctor f a Source #
Wrapped functor type to make instances of product-iso functors.
WrapFunctor | |
|
Alternative f => ProductIsoAlternative (WrappedFunctor f) Source # | |
Applicative f => ProductIsoApplicative (WrappedFunctor f) Source # | |
Functor f => ProductIsoFunctor (WrappedFunctor f) Source # | |
Applicative f => ProductIsoEmpty (WrappedFunctor f) () Source # | |
newtype WrappedAlter f a b Source #
Wrapped Const Alternative objects to make instances like Const functor.
WrapAlter | |
|
Alternative f => ProductIsoApplicative (WrappedAlter f a) Source # | |
ProductIsoFunctor (WrappedAlter f a) Source # | |
Alternative f => ProductIsoEmpty (WrappedAlter f a) () Source # | |