Convert an effectful
Producer into a list alongside the return
value
Note:
toListM' is not an idiomatic use of
pipes, but I
provide it for simple testing purposes. Idiomatic
pipes style
consumes the elements immediately as they are generated instead of
loading all elements into memory.