product-isomorphic-0.0.1.0: Weaken applicative functor on products

Copyright2017 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell2010

Data.Functor.ProductIsomorphic.Instances

Contents

Description

This module defines functor instances morphed functions are restricted to products.

Synopsis

Documentation

newtype WrappedFunctor f a Source #

Wrapped functor type to make instances of product-iso functors.

Constructors

WrapFunctor 

Fields

newtype WrappedAlter f a b Source #

Wrapped Const Alternative objects to make instances like Const functor.

Constructors

WrapAlter 

Fields

Instances

Orphan instances

Monoid a => ProductIsoApplicative (Const * a) Source # 

Methods

pureP :: ProductConstructor a => a -> Const * a a Source #

(|*|) :: Const * a (a -> b) -> Const * a a -> Const * a b Source #

ProductIsoFunctor (Const * a) Source # 

Methods

(|$|) :: ProductConstructor (a -> b) => (a -> b) -> Const * a a -> Const * a b Source #