[Haskell-cafe] Re: instance Eq (a -> b)

Edward Kmett ekmett at gmail.com
Mon Apr 19 15:32:49 EDT 2010


Because it is the most utilitarian way to get a bunch of strict ByteStrings
out of a lazy one.

Yes it exposes an implementation detail, but the alternatives involve an
unnatural amount of copying.

-Edward Kmett

On Sat, Apr 17, 2010 at 6:37 PM, Ashley Yakeley <ashley at semantic.org> wrote:

> Ketil Malde wrote:
>
>> Do we also want to modify equality for lazy bytestrings, where equality
>> is currently independent of chunk segmentation?  (I.e.
>>
>>  toChunks s1 == toChunks s2 ==> s1 == s2
>> but not vice versa.)
>>
>
> Why is toChunks exposed?
>
> --
> Ashley Yakeley
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100419/31d45a56/attachment.html


More information about the Haskell-Cafe mailing list