
12 Sep
2019
12 Sep
'19
8:15 a.m.
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