HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulererebase-1.21.2Haskell2010

Control.Monad.Zip

  • 1 class
classclass Monad m => MonadZip (m :: Type -> Type) where
#

Instances should satisfy the laws:

Naturality
liftM (f *** g) (mzip ma mb)
    = mzip (liftM f ma) (liftM g mb)
Information Preservation

liftM (const ()) ma = liftM (const ()) mb implies munzip (mzip ma mb) = (ma, mb)

Methods

  • mzip :: m a -> m b -> m (a, b)
  • mzipWith :: (a -> b -> c) -> m a -> m b -> m c
  • munzip :: m (a, b) -> (m a, m b)
Instances35MonadZip, …