regular-0.2.1: Generic programming library for regular datatypes.Source codeContentsIndex
Generics.Regular.Functions.Zip
Portabilitynon-portable
Stabilityexperimental
Maintainergenerics@haskell.org
Contents
Zip functions
Description
Summary: Generic zip.
Synopsis
class Zip f where
fzipM :: Monad m => (a -> b -> m c) -> f a -> f b -> m (f c)
fzip :: (Zip f, Monad m) => (a -> b -> c) -> f a -> f b -> m (f c)
fzip' :: Zip f => (a -> b -> c) -> f a -> f b -> f c
Zip functions
class Zip f whereSource
The Zip class defines a monadic zip on functorial values.
Methods
fzipM :: Monad m => (a -> b -> m c) -> f a -> f b -> m (f c)Source
show/hide Instances
Zip U
Zip I
Eq a => Zip (K a)
Zip f => Zip (S s f)
Zip f => Zip (C c f)
(Zip f, Zip g) => Zip (f :*: g)
(Zip f, Zip g) => Zip (f :+: g)
fzip :: (Zip f, Monad m) => (a -> b -> c) -> f a -> f b -> m (f c)Source
Functorial zip with a non-monadic function, resulting in a monadic value.
fzip' :: Zip f => (a -> b -> c) -> f a -> f b -> f cSource
Partial functorial zip with a non-monadic function.
Produced by Haddock version 2.4.2