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.

  1. mapName :: Mapping -> !Maybe Text

    sourcemap SourceMap.Types

    No documentation available.

  2. mapOriginal :: Mapping -> !Maybe Pos

    sourcemap SourceMap.Types

    No documentation available.

  3. mapSourceFile :: Mapping -> !Maybe FilePath

    sourcemap SourceMap.Types

    No documentation available.

  4. mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m b

    streamly 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)

  5. 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.

  6. mapMaybe :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => (a -> Maybe b) -> t m a -> t m b

    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
    

  7. mapMaybeM :: (IsStream t, MonadAsync m, Functor (t m)) => (a -> m (Maybe b)) -> t m a -> t m b

    streamly 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)

  8. mapM :: Monad m => (a -> m b) -> SerialT m a -> SerialT m b

    streamly Streamly.Internal.Data.Stream.Serial

    No documentation available.

  9. mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m b

    streamly 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)

  10. 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.

Page 321 of many | Previous | Next