fix for Data.List.sortBy

Siddhanathan Shanmugam siddhanathan+eml at gmail.com
Wed Mar 29 02:53:24 UTC 2017


On Tue, Mar 28, 2017 at 12:48 PM, David Feuer <david.feuer at gmail.com> wrote:

> There are a number of intermediate lists that are certainly non-empty, but
> their types don't reflect that. I wonder if using a non-empty list type
> unpacked into the list of lists might be helpful.
>

I just tried it. Seems to work fine, and the benchmark numbers are similar.

Doing this in base would introduce cyclic dependencies though.




>
> On Mar 28, 2017 3:39 PM, "Gregory Popovitch" <greg7mdp at gmail.com> wrote:
>
>> OK, here is the current proposed change - tests look good:
>>
>>
>> Any comments/opposition from the community?
>>
>> Thanks,
>>
>> greg
>>
>>
>> _______________________________________________
>> Libraries mailing list
>> Libraries at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20170328/1d29a727/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook.jpg
Type: image/jpeg
Size: 104849 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20170328/1d29a727/attachment-0001.jpg>


More information about the Libraries mailing list