-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Collection of combinators over standard typeclasses -- -- Collection of combinators over standard typeclasses @package combinators @version 0.1.1 module Combinators -- | Generalization over many common natural transformations, including: -- -- alternate :: (Foldable f, Alternative g) => f a -> g a -- | alternate extended with ability to map the wrapped value. alternateMap :: (Foldable f, Alternative g) => (a -> b) -> f a -> g b -- | alternateMap extended with ability to do the mapping in the -- Alternative context. alternateMapM :: (Foldable f, Alternative g) => (a -> g b) -> f a -> g b -- | A generic version of the original list-specialized version: -- --
--   intercalate :: [a] -> [[a]] -> [a]
--   
intercalate :: (Foldable f, Monoid a) => a -> f a -> a -- | intercalate extended with ability to map the wrapped value. intercalateMap :: (Foldable f, Monoid m) => m -> (a -> m) -> f a -> m -- | Indexed version of forM. iforM :: (Traversable f, Monad m) => f a -> (Int -> a -> m b) -> m (f b) -- | Indexed version of traverse. itraverse :: (Traversable f, Monad m) => (Int -> a -> m b) -> f a -> m (f b)