Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapMaybeWithKey :: (k -> v1 -> Maybe v2) -> InsOrdHashMap k v1 -> InsOrdHashMap k v2

    insert-ordered-containers Data.HashMap.Strict.InsOrd

    No documentation available.

  2. mapM_ :: Monad m => (a -> m x) -> Stream (Of a) m r -> m r

    streaming Streaming.Prelude

    Reduce a stream to its return value with a monadic action.

    >>> S.mapM_ Prelude.print $ each [1..3]
    1
    2
    3
    
    >>> rest <- S.mapM_ Prelude.print $ S.splitAt 3 $ each [1..10]
    1
    2
    3
    
    >>> S.sum rest
    49 :> ()
    

  3. mapMaybe :: forall (m :: Type -> Type) a b r . Monad m => (a -> Maybe b) -> Stream (Of a) m r -> Stream (Of b) m r

    streaming Streaming.Prelude

    The mapMaybe function is a version of map which can throw out elements. In particular, the functional argument returns something of type Maybe b. If this is Nothing, no element is added on to the result Stream. If it is Just b, then b is included in the result Stream.

  4. mapMaybeM :: Monad m => (a -> m (Maybe b)) -> Stream (Of a) m r -> Stream (Of b) m r

    streaming Streaming.Prelude

    Map monadically over a stream, producing a new stream only containing the Just values.

  5. mapMaybe :: Filterable f => (a -> Maybe b) -> f a -> f b

    witherable Witherable

    Like mapMaybe.

  6. mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()

    base-compat-batteries Control.Monad.Compat

    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.

  7. mapM_ :: Monad m => (time -> m ()) -> (body -> m ()) -> T time body -> m ()

    event-list Data.EventList.Absolute.TimeBody

    No documentation available.

  8. mapMaybe :: Num time => (body0 -> Maybe body1) -> T time body0 -> T time body1

    event-list Data.EventList.Absolute.TimeBody

    No documentation available.

  9. mapM_ :: Monad m => (time -> m ()) -> (body -> m ()) -> T time body -> m ()

    event-list Data.EventList.Absolute.TimeTime

    No documentation available.

  10. mapMaybe :: Num time => (body0 -> Maybe body1) -> T time body0 -> T time body1

    event-list Data.EventList.Absolute.TimeTime

    No documentation available.

Page 29 of many | Previous | Next