Closed andrewthad closed 10 years ago
Oops, that's a typo in the tutorial. The haddocks are correct. The symmetric type signature from the tutorial should have been:
(~>) :: Monad m
=> (a -> Producer b m ())
-> (b -> Producer c m ())
-> (a -> Producer c m ())
... which just a specialized version of the form in the haddocks.
Ah, thanks for the clarification. That makes more sense.
Fixed by 560af74098f97044fc8fb2e9662f31fb5139c47e
In the pipes tutorial, when the
~>
(theinto
function) is introduced, the type signature is given as:However, the second specialized type of
~>
given in the haddocks for the Pipes page (where it lists a total of four specialized signatures) is:Is the Producer in the second argument supposed to be parameterized by type
r
or by()
?