Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapGSList :: (Ptr a -> IO b) -> Ptr (GSList (Ptr a)) -> IO ()haskell-gi-base Data.GI.Base.BasicConversions No documentation available.
mapPtrArray :: (Ptr a -> IO b) -> Ptr (GPtrArray (Ptr a)) -> IO ()haskell-gi-base Data.GI.Base.BasicConversions No documentation available.
mapZeroTerminatedCArray :: (Ptr a -> IO b) -> Ptr (Ptr a) -> IO ()haskell-gi-base Data.GI.Base.BasicConversions No documentation available.
mapGValueArrayWithLength :: Integral a => a -> (Ptr GValue -> IO c) -> Ptr GValue -> IO ()haskell-gi-base Data.GI.Base.GValue Map over the GValues inside a C array.
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)haskell-gi-base Data.GI.Base.ShortPrelude 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.mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()haskell-gi-base Data.GI.Base.ShortPrelude 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.
mapFirst :: (a -> c) -> [(a, b)] -> [(c, b)]haskell-gi-base Data.GI.Base.Utils Given a function and a list of two-tuples, apply the function to every first element of the tuples.
mapFirstA :: Applicative f => (a -> f c) -> [(a, b)] -> f [(c, b)]haskell-gi-base Data.GI.Base.Utils Applicative version of mapFirst.
mapSecond :: (b -> c) -> [(a, b)] -> [(a, c)]haskell-gi-base Data.GI.Base.Utils Same for the second element.
mapSecondA :: Applicative f => (b -> f c) -> [(a, b)] -> f [(a, c)]haskell-gi-base Data.GI.Base.Utils Applicative version of mapSecond.