Re: Storable instance of () is broken

Harendra Kumar <[email protected]> Wed, 5 Jan 2022 19:19:34 +0530
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <CAPW+kka+05S=2QHpY7GPeoAY6Oe0FPaFF4xJWma0avsQxqti8g@mail.gmail.com>
On Wed, 5 Jan 2022 at 18:09, Tom Ellis
<[email protected]> wrote:
>
> On the other hand, despite being no expert of Storable, it seems to me
> the class exists merely to conveniently read to and write from raw
> memory.  The () instance is useless for this purpose so I'm not sure
> why it exists.  If the purpose of the class were to be a general
> purpose serialisation API then the () instance *would* make sense, but
> then we'd also have an (a, b) instance too, which we don't.

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