Understanding `conduit` Output

Viewed 130

Using Conduit, given:

Prelude> :t (yieldMany [1..10] .| mapC show .| mapC print .| sinkList)
(yieldMany [1..10] .| mapC show .| mapC print .| sinkList)
  :: Monad m => ConduitM a c m [IO ()]

Why doesn't any output get logged?

Prelude> runConduit $ yieldMany [1..10] .| mapC show .| mapC print .| sinkList
Prelude>

My expectation was that, for a stream of [1..10], each element's String, i.e. show, value would be printed.

Please explain this output.

1 Answers
Related