Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapName :: Mapping -> !Maybe Textsourcemap SourceMap.Types No documentation available.
mapOriginal :: Mapping -> !Maybe Possourcemap SourceMap.Types No documentation available.
mapSourceFile :: Mapping -> !Maybe FilePathsourcemap SourceMap.Types No documentation available.
mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m bstreamly Streamly.Internal.Data.Stream.IsStream mapM f = sequence . map f
Apply a monadic function to each element of the stream and replace it with the output of the resulting action.>>> drain $ Stream.mapM putStr $ Stream.fromList ["a", "b", "c"] abc >>> :{ drain $ Stream.replicateM 10 (return 1) & (fromSerial . Stream.mapM (x -> threadDelay 1000000 >> print x)) :} 1 ... 1 > drain $ Stream.replicateM 10 (return 1) & (fromAsync . Stream.mapM (x -> threadDelay 1000000 >> print x))Concurrent (do not use with fromParallel on infinite streams)mapM_ :: Monad m => (a -> m b) -> SerialT m a -> m ()streamly Streamly.Internal.Data.Stream.IsStream mapM_ = Stream.drain . Stream.mapM
Apply a monadic action to each element of the stream and discard the output of the action. This is not really a pure transformation operation but a transformation followed by fold.-
streamly Streamly.Internal.Data.Stream.IsStream Map a Maybe returning function to a stream, filter out the Nothing elements, and return a stream of values extracted from Just. Equivalent to:
mapMaybe f = Stream.map fromJust . Stream.filter isJust . Stream.map f
mapMaybeM :: (IsStream t, MonadAsync m, Functor (t m)) => (a -> m (Maybe b)) -> t m a -> t m bstreamly Streamly.Internal.Data.Stream.IsStream Like mapMaybe but maps a monadic function. Equivalent to:
mapMaybeM f = Stream.map fromJust . Stream.filter isJust . Stream.mapM f
Concurrent (do not use with fromParallel on infinite streams)mapM :: Monad m => (a -> m b) -> SerialT m a -> SerialT m bstreamly Streamly.Internal.Data.Stream.Serial No documentation available.
mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m bstreamly Streamly.Prelude mapM f = sequence . map f
Apply a monadic function to each element of the stream and replace it with the output of the resulting action.>>> drain $ Stream.mapM putStr $ Stream.fromList ["a", "b", "c"] abc >>> :{ drain $ Stream.replicateM 10 (return 1) & (fromSerial . Stream.mapM (x -> threadDelay 1000000 >> print x)) :} 1 ... 1 > drain $ Stream.replicateM 10 (return 1) & (fromAsync . Stream.mapM (x -> threadDelay 1000000 >> print x))Concurrent (do not use with fromParallel on infinite streams)mapM_ :: Monad m => (a -> m b) -> SerialT m a -> m ()streamly Streamly.Prelude mapM_ = Stream.drain . Stream.mapM
Apply a monadic action to each element of the stream and discard the output of the action. This is not really a pure transformation operation but a transformation followed by fold.