haskell-streaming / streaming-bytestring

effectful sequences of bytes; an alternative no-lazy-io implementation of Data.ByteString.Lazy
BSD 3-Clause "New" or "Revised" License
16 stars 11 forks source link

Generalise `Streaming.ByteString.for` so that it's actually usable #67

Closed endgame closed 2 years ago

endgame commented 2 years ago

Sorry about this, but the type of for is insufficiently general. This PR makes it not care about the ByteStream return type from the callback, which makes it actually useful for return types other than ().

fosskers commented 2 years ago

Thanks, I'll pump this out.

fosskers commented 2 years ago

Done. I've uploaded 0.2.4.

endgame commented 2 years ago

Great, thanks very much.