Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

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

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

    No documentation available.

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

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

    No documentation available.

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

    streaming Streaming.Prelude

    The catMaybes function takes a Stream of Maybes and returns a Stream of all of the Just values. concat has the same behavior, but is more general; it works for any foldable container type.

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

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

  6. catMaybes :: Filterable f => f (Maybe a) -> f a

    witherable Witherable

    catMaybesmapMaybe id
    

  7. forMaybe :: (Witherable t, Applicative f) => t a -> (a -> f (Maybe b)) -> f (t b)

    witherable Witherable

    forMaybe = flip wither
    

  8. imapMaybe :: FilterableWithIndex i t => (i -> a -> Maybe b) -> t a -> t b

    witherable Witherable

    No documentation available.

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

    witherable Witherable

    Like mapMaybe.

  10. cmapMaybe :: forall (m :: Type -> Type) a b . Applicative m => (a -> Maybe b) -> LogAction m b -> LogAction m a

    co-log-core Colog.Core.Action

    cmap for convertions that may fail

Page 173 of many | Previous | Next