Proposal: change the Bits instance for Bool to align with other basic types and support branchless calculations

Brandon Allbery allbery.b at gmail.com
Sun Sep 28 19:45:49 UTC 2014


On Sun, Sep 28, 2014 at 3:38 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

> In particular, I'm not quite seeing where this fits within Data.Bits


It just occurred to me that I may have answered part of this myself on IRC
yesterday, in a different context: the strictness of the other instances
may not indicate a fundamental difference between Bool and the other
instances beyond the fact that the other instances are effectively
spine-strict bit arrays, whereas Bool is free to *express* laziness.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140928/64eb5319/attachment.html>


More information about the Libraries mailing list