Proposal: Add {to, from}Strict conversion functions between strict and lazy ByteStrings

Don Stewart dons00 at gmail.com
Sun Oct 30 14:47:57 CET 2011


Just as a historical note, they were intentionally left out of the original
bytestring library, as it was felt it would only encourage mixing up lazy
and strict bytestrings, with resulting poor and confusing performance.

It was intentional that you had to compose two functions to do this.

-- Don

On Sun, Oct 30, 2011 at 5:19 AM, Gregory Collins <greg at gregorycollins.net>wrote:

> On Sun, Oct 30, 2011 at 12:53 AM, wren ng thornton <wren at freegeek.org>
> wrote:
>
> > In any case, +1 to adding these functions to the package. I don't know
> how
> > many times I've written them by hand this way...
>
> +1!! Same here -- I've written these functions, or their inline
> equivalents, hundreds of times.
>
> G
> --
> Gregory Collins <greg at gregorycollins.net>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20111030/dae12bdc/attachment.htm>


More information about the Libraries mailing list