Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapM_ :: Monad m => (a -> m ()) -> FoldM m a ()foldl Control.Foldl Converts an effectful function to a fold. Specialized version of sink.
mapM_ :: (a -> IO b) -> InputStream a -> IO (InputStream a)io-streams System.IO.Streams.Combinators Maps a side effect over an InputStream. mapM_ f s produces a new input stream that passes all output from s through the side-effecting IO action f. Example:
ghci> Streams.fromList [1,2,3] >>= Streams.mapM_ (putStrLn . show . (*2)) >>= Streams.toList 2 4 6 [1,2,3]
mapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()mono-traversable Data.MonoTraversable.Unprefixed Synonym for omapM_
mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()rio RIO.Prelude 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.
mapM_ :: (Monad m, Vector v a) => (a -> m b) -> v a -> m ()rio RIO.Vector No documentation available.
mapM_ :: Monad m => (a -> m b) -> Vector a -> m ()rio RIO.Vector.Boxed No documentation available.
mapM_ :: (Monad m, Storable a) => (a -> m b) -> Vector a -> m ()rio RIO.Vector.Storable No documentation available.
mapM_ :: (Monad m, Unbox a) => (a -> m b) -> Vector a -> m ()rio RIO.Vector.Unboxed No documentation available.
mapM_ :: HashTable h => ((k, v) -> ST s b) -> h s k v -> ST s ()hashtables Data.HashTable.Class A side-effecting map over the key-value records of a hash table. O(n).
mapM_ :: HashTable h => ((k, v) -> IO a) -> IOHashTable h k v -> IO ()hashtables Data.HashTable.IO See the documentation for this function in mapM_.