Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapExceptionM :: (Exception e1, Exception e2, MonadUnliftIO m) => (e1 -> e2) -> m a -> m aclassy-prelude-yesod ClassyPrelude.Yesod Same as mapException, except works in a monadic context.
mapFromList :: IsMap map => [(ContainerKey map, MapValue map)] -> mapclassy-prelude-yesod ClassyPrelude.Yesod Convert a list of key-value pairs to a map
-
classy-prelude-yesod ClassyPrelude.Yesod Apply a function to all the input values of a ConduitT. Since 0.5.0
-
classy-prelude-yesod ClassyPrelude.Yesod Apply a monadic action to all the input values of a ConduitT. Since 1.3.2
-
classy-prelude-yesod ClassyPrelude.Yesod No documentation available.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)classy-prelude-yesod ClassyPrelude.Yesod Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.
Examples
mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.mapMC :: Monad m => (a -> m b) -> ConduitT a b m ()classy-prelude-yesod ClassyPrelude.Yesod Apply a monadic transformation to all values in a stream. If you do not need the transformed values, and instead just want the monadic side-effects of running the action, see mapM_.
mapMCE :: (Monad m, Traversable f) => (a -> m b) -> ConduitT (f a) (f b) m ()classy-prelude-yesod ClassyPrelude.Yesod Apply a monadic transformation to all elements in a chunked stream.
mapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()classy-prelude-yesod ClassyPrelude.Yesod Synonym for omapM_
mapM_C :: Monad m => (a -> m ()) -> ConduitT a o m ()classy-prelude-yesod ClassyPrelude.Yesod Apply the action to all values in the stream. Note: if you want to pass the values instead of consuming them, use iterM instead.