Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- alternate :: (Foldable f, Alternative g) => f a -> g a
- alternateMap :: (Foldable f, Alternative g) => (a -> b) -> f a -> g b
- alternateMapM :: (Foldable f, Alternative g) => (a -> g b) -> f a -> g b
- iforM :: (Monad m, Traversable f) => f a -> (Int -> a -> m b) -> m (f b)
Alternation
alternate :: (Foldable f, Alternative g) => f a -> g a Source #
alternateMap :: (Foldable f, Alternative g) => (a -> b) -> f a -> g b Source #
alternate
extended with ability to map the wrapped value.
alternateMapM :: (Foldable f, Alternative g) => (a -> g b) -> f a -> g b Source #
alternateMap
extended with ability to do the mapping in the Alternative
context.