[Haskell-cafe] parallele tolistM of the pipes module
PICCA Frederic-Emmanuel
frederic-emmanuel.picca at synchrotron-soleil.fr
Thu Sep 12 08:15:55 UTC 2019
Hello,
I would like to know how to write a parallele version of the
pipes function:
toListM :: Monad m => Producer a m () -> m [a]
toListM = fold step begin done
where
step x a = x . (a:)
begin = id
done x = x []
{-# INLINABLE toListM #-}
I want to extract all the a from th epipes but concurrently.
is it possible ?
Cheers
Frederic
More information about the Haskell-Cafe
mailing list