Storable instance of () is broken

Harendra Kumar harendra.kumar at
Wed Jan 5 13:49:34 UTC 2022

On Wed, 5 Jan 2022 at 18:09, Tom Ellis
<tom-lists-haskell-cafe-2017 at> 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.


More information about the Libraries mailing list