Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapWhileC :: forall (m :: Type -> Type) a b . Monad m => (a -> Maybe b) -> ConduitT a b m ()classy-prelude-yesod ClassyPrelude.Yesod Map values as long as the result is Just.
mapWithKey :: IsMap map => (ContainerKey map -> MapValue map -> MapValue map) -> map -> mapclassy-prelude-yesod ClassyPrelude.Yesod Apply a function over every key-value pair of a map.
mappend :: Monoid a => a -> a -> aclassy-prelude-yesod ClassyPrelude.Yesod An associative operation NOTE: This method is redundant and has the default implementation mappend = (<>) since base-4.11.0.0. Should it be implemented manually, since mappend is a synonym for (<>), it is expected that the two functions are defined the same way. In a future GHC release mappend will be removed from Monoid.
mappendRecordHashMap :: (Monoid r, IsRecordHashMap r c m) => m -> m -> mcolumnar Text.Columnar often we will want to construct a Monoid HashMap from Monoid records
mappendRecordMap :: (Monoid r, IsRecordIntMap r c m) => m -> m -> mcolumnar Text.Columnar often we will want to construct a Monoid Intmap from Monoid records
-
constrained-categories Control.Category.Constrained.Prelude mapEither f ≡ sum2product . fmap f
-
constrained-categories Control.Category.Constrained.Prelude traverse, restricted to endofunctors. May be more efficient to implement.
-
constrained-categories Control.Category.Constrained.Prelude The distinction between mapM_ and traverse_ doesn't really make sense on grounds of Monoidal / Applicative vs Monad, but it has in fact some benefits to restrict this to endofunctors, to make the constraint list at least somewhat shorter.
mappend :: Monoid a => a -> a -> aconstrained-categories Control.Category.Constrained.Prelude An associative operation NOTE: This method is redundant and has the default implementation mappend = (<>) since base-4.11.0.0. Should it be implemented manually, since mappend is a synonym for (<>), it is expected that the two functions are defined the same way. In a future GHC release mappend will be removed from Monoid.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)constrained-categories Control.Category.Hask 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.