lazy ByteStrings: toChunks

Donald Bruce Stewart dons at
Tue Jan 23 15:32:47 EST 2007

> toChunks exposes the implementation, and so shouldn't be in the public
> interface, should it?  There could be a function from lazy to ordinary
> ByteStrings (B.concat . toChunks), though.

That seems reasonable. All uses I've ever had for toChunks involve also
concat'ing them.

The idea originally was to avoid unnecessary strictness.

-- Don

More information about the Libraries mailing list