monad-products-0.2.1.1: Haskell 98 monad products

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Control.Monad.Product

Description

Monad Products

Synopsis

Documentation

newtype Product g h a Source

disjoint Graph union as a Monad product

Constructors

Product 

Fields

runProduct :: (g a, h a)
 

Instances

(Monad g, Monad h) => Monad (Product g h) 
(Functor g, Functor h) => Functor (Product g h) 
(MonadPlus g, MonadPlus h) => MonadPlus (Product g h) 
(Applicative g, Applicative h) => Applicative (Product g h) 
(Alternative g, Alternative h) => Alternative (Product g h) 
(Alt g, Alt h) => Alt (Product g h) 
(Apply g, Apply h) => Apply (Product g h) 
(Bind g, Bind h) => Bind (Product g h)