Hoogle Search

Within LTS Haskell 24.38 (ghc-9.10.3)

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

  1. mapAndUnzipM :: Applicative m => (a -> m (b, c)) -> [a] -> m ([b], [c])

    base-compat-batteries Control.Monad.Compat

    The mapAndUnzipM function maps its first argument over a list, returning the result as a pair of lists. This function is mainly used with complicated data structures or a state monad.

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

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

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

  5. mapValName :: Name

    deriving-compat Data.Deriving.Internal

    No documentation available.

  6. mappendValName :: Name

    deriving-compat Data.Deriving.Internal

    No documentation available.

  7. mapf :: (a -> b) -> Format r (b -> t) -> Format r (a -> t)

    formatting Formatting

    Functorial map over a formatter's input. Example: format (mapf (drop 1) string) "hello"

  8. mapf :: (a -> b) -> Format r (b -> t) -> Format r (a -> t)

    formatting Formatting.Internal

    Functorial map over a formatter's input. Example: format (mapf (drop 1) string) "hello"

  9. mapped :: forall (f :: Type -> Type) a a' . Functor f => Setter (f a) (f a') a a'

    lens-family Lens.Family2.Stock

    An SEC referencing the parameter of a functor.

  10. mapTrack :: (Track -> Track) -> T -> T

    midi Sound.MIDI.File

    Apply a function to each track.

Page 152 of many | Previous | Next