Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
messagepack Data.MessagePack.Spec No documentation available.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)mixed-types-num Numeric.MixedTypes.PreludeHiding 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.mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()mixed-types-num Numeric.MixedTypes.PreludeHiding Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ is just like traverse_, but specialised to monadic actions.
mappend :: Monoid a => a -> a -> amixed-types-num Numeric.MixedTypes.PreludeHiding 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.
mapLoggingT :: (m a -> n b) -> LoggingT m a -> LoggingT n bmonad-logger-aeson Control.Monad.Logger.Aeson Map the unwrapped computation using the given function.
mapNoLoggingT :: (m a -> n b) -> NoLoggingT m a -> NoLoggingT n bmonad-logger-aeson Control.Monad.Logger.Aeson Map the unwrapped computation using the given function.
mapCont :: (r -> r) -> Cont r a -> Cont r amonads-tf Control.Monad.Cont Apply a function to transform the result of a continuation-passing computation.
mapExceptT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n bmonads-tf Control.Monad.Except Map the unwrapped computation using the given function.
runExceptT (mapExceptT f m) = f (runExceptT m)
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s bmonads-tf Control.Monad.RWS.Lazy Map the return value, final state and output of a computation using the given function.
mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n bmonads-tf Control.Monad.RWS.Lazy Map the inner computation using the given function.