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. mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)

    base-compat-batteries Control.Monad.Compat

    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.

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

  3. mappend :: Monoid a => a -> a -> a

    base-compat-batteries Data.Monoid.Compat

    An associative operation NOTE: This method is redundant and has the default implementation mappend = (<>) since base-4.11.0.0. Should it be implemented manually, since mappend is a synonym for (<>), it is expected that the two functions are defined the same way. In a future GHC release mappend will be removed from Monoid.

  4. mapSeverity :: (Severity -> Severity) -> WithSeverity msg -> WithSeverity msg

    co-log-core Colog.Core.Severity

    Map the given function over the severity of a WithSeverity. This can be useful to operate generically over the severity, for example:

    suppressErrors :: LogAction m (WithSeverity msg) -> LogAction m (WithSeverity msg)
    suppressErrors = cmap (mapSeverity (s -> if s == Error then Warning else s))
    

  5. mapBody :: (body0 -> body1) -> T time body0 -> T time body1

    event-list Data.EventList.Absolute.TimeBody

    No documentation available.

  6. mapBodyM :: Monad m => (body0 -> m body1) -> T time body0 -> m (T time body1)

    event-list Data.EventList.Absolute.TimeBody

    No documentation available.

  7. mapCoincident :: Ord time => ([a] -> [b]) -> T time a -> T time b

    event-list Data.EventList.Absolute.TimeBody

    Apply a function to the lists of coincident events.

  8. mapM :: Monad m => (time0 -> m time1) -> (body0 -> m body1) -> T time0 body0 -> m (T time1 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.TimeBody

    No documentation available.

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

    event-list Data.EventList.Absolute.TimeBody

    No documentation available.

Page 143 of many | Previous | Next