| Copyright | (c) Nils Schweinsberg 2011 (c) George Giorgidze 2011 (c) University Tuebingen 2011 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | libraries@haskell.org |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Control.Monad.Zip
Description
Monadic zipping (used for monad comprehensions)
classMonad m =>MonadZip mwhereSource#
MonadZip type class. Minimal definition:mzip ormzipWith
Instances should satisfy the laws:
liftM (f *** g) (mzip ma mb) = mzip (liftM f ma) (liftM g mb)
liftM (const ()) ma = liftM (const ()) mb==>munzip (mzip ma mb) = (ma, mb)
| MonadZip []Source# | Since: 4.3.1.0 |
| MonadZipMaybeSource# | Since: 4.8.0.0 |
| MonadZipPar1Source# | Since: 4.9.0.0 |
| MonadZipNonEmptySource# | Since: 4.9.0.0 |
| MonadZipDownSource# | Since: 4.12.0.0 |
| MonadZipProductSource# | Since: 4.8.0.0 |
| MonadZipSumSource# | Since: 4.8.0.0 |
| MonadZipDualSource# | Since: 4.8.0.0 |
| MonadZipLastSource# | Since: 4.8.0.0 |
| MonadZipFirstSource# | Since: 4.8.0.0 |
| MonadZipIdentitySource# | Since: 4.8.0.0 |
| MonadZip (U1 ::Type ->Type)Source# | Since: 4.9.0.0 |
| MonadZip (Proxy ::Type ->Type)Source# | Since: 4.9.0.0 |
| MonadZip f =>MonadZip (Rec1 f)Source# | Since: 4.9.0.0 |
| MonadZip f =>MonadZip (Alt f)Source# | Since: 4.8.0.0 |
| (MonadZip f,MonadZip g) =>MonadZip (f:*: g)Source# | Since: 4.9.0.0 |
| (MonadZip f,MonadZip g) =>MonadZip (Product f g)Source# | Since: 4.9.0.0 |
| MonadZip f =>MonadZip (M1 i c f)Source# | Since: 4.9.0.0 |
Produced byHaddock version 2.20.0