Discussion: Storable instances for tuples

Henning Thielemann lemming at henning-thielemann.de
Sat Dec 16 07:49:51 UTC 2017

On Fri, 15 Dec 2017, David Feuer wrote:

> It seems surprising that there are no Storable instances for tuple types. I would expect any tuple of Storable
> types to be Storable. To provide a sensible FFI experience, the order of the fields should be preserved. Since
> Storable generally aligns values, I believe elements should be aligned within tuples as well, in the default
> fashion used for C structs. We could offer a Packed newtype to override this behavior.

I had the same suggestion when we discussed instance Storable (). Sven 
Panne answered:

More information about the Libraries mailing list