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. mapInputM :: Monad m => (i1 -> m i2) -> (i2 -> m (Maybe i1)) -> ConduitT i2 o m r -> ConduitT i1 o m r

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply a monadic action to all the input values of a ConduitT. Since 1.3.2

  2. mapKeysWith :: (BiPolyMap map, BPMKeyConstraint map k1, BPMKeyConstraint map k2) => (v -> v -> v) -> (k1 -> k2) -> map k1 v -> map k2 v

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  3. mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)

    classy-prelude-yesod ClassyPrelude.Yesod

    Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.

    Examples

    mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.

  4. mapMC :: Monad m => (a -> m b) -> ConduitT a b m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply a monadic transformation to all values in a stream. If you do not need the transformed values, and instead just want the monadic side-effects of running the action, see mapM_.

  5. mapMCE :: (Monad m, Traversable f) => (a -> m b) -> ConduitT (f a) (f b) m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply a monadic transformation to all elements in a chunked stream.

  6. mapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Synonym for omapM_

  7. mapM_C :: Monad m => (a -> m ()) -> ConduitT a o m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply the action to all values in the stream. Note: if you want to pass the values instead of consuming them, use iterM instead.

  8. mapM_CE :: (Monad m, MonoFoldable mono) => (Element mono -> m ()) -> ConduitT mono o m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply the action to all elements in the chunked stream. Note: the same caveat as with mapM_C applies. If you don't want to consume the values, you can use iterM:

    iterM (omapM_ f)
    

  9. mapMaybe :: (a -> Maybe b) -> [a] -> [b]

    classy-prelude-yesod ClassyPrelude.Yesod

    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 list. If it is Just b, then b is included in the result list.

    Examples

    Using mapMaybe f x is a shortcut for catMaybes $ map f x in most cases:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> let readMaybeInt = readMaybe :: String -> Maybe Int
    
    >>> mapMaybe readMaybeInt ["1", "Foo", "3"]
    [1,3]
    
    >>> catMaybes $ map readMaybeInt ["1", "Foo", "3"]
    [1,3]
    
    If we map the Just constructor, the entire list should be returned:
    >>> mapMaybe Just [1,2,3]
    [1,2,3]
    

  10. mapNonNull :: (Functor f, MonoFoldable (f b)) => (a -> b) -> NonNull (f a) -> NonNull (f b)

    classy-prelude-yesod ClassyPrelude.Yesod

    fmap over the underlying container in a NonNull.

Page 335 of many | Previous | Next