I would expect the following to work as well:main =
Conduit.sourceList [1..14]
$= Conduit.map show
$= display
$$ Conduit.sinkNull
display = Conduit.iterM putStrLn $= Conduit.iterM putStrLn
...but I get the compilation error:
Couldn't match expected type `String' with actual type `()'
Expected type: Conduit.Conduit String m0 a0
Actual type: Conduit.Source IO ()
In the second argument of `($=)', namely `display'
In the first argument of `($$)', namely
`Conduit.sourceList [1 .. 14] $= Conduit.map show $= display'