Safe Haskell | Safe |
---|
Utility functions for the Control.Monad.MultiPass library.
- mapST2ArrayMP :: (Ix i, Num i) => NumThreads -> ST2Array r w i a -> (a -> MultiPass r w tc b) -> MultiPass r w tc (ST2Array r w i b)
- mapST2ArrayMP_ :: (Ix i, Num i) => NumThreads -> ST2Array r w i a -> (a -> MultiPass r w tc b) -> MultiPass r w tc ()
- pmapM :: (Traversable t, Monad m, Monad p) => t a -> (a -> m (p b)) -> m (p (t b))
Documentation
pmapM :: (Traversable t, Monad m, Monad p) => t a -> (a -> m (p b)) -> m (p (t b))Source
This function provides a similar interface to
mapM
, but is useful for mapping over a datatype in
a specific pass of the MultiPass
monad.
Note: the m
type is usually the
MultiPass
monad, but the implementation
does not specifically depend on anything from the
Control.Monad.MultiPass library, so its type is more general.