Re: Storable instance of () is broken

Harendra Kumar <[email protected]> Wed, 5 Jan 2022 20:21:11 +0530
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <CAPW+kkZ-CeQeCp_h9HJ-oC-x0e166V2DTKJAoG0e=Fuy39ON8Q@mail.gmail.com>
On Wed, 5 Jan 2022 at 20:06, Kim-Ee Yeoh <[email protected]> wrote:
> You’ve made good points in your posts.
>
> Worth to keep in mind that the number of bits needed to distinguish between n things is log2 n.
>
> The log of 1 is 0.

Exactly. And that is why we should not have a Storable instance for ().

-harendra
_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries