[Haskell-cafe] Storable types with zero size

Douglas McClean douglas.mcclean at gmail.com
Fri Dec 18 20:36:04 UTC 2015


Can the sizeOf a Storable type be 0?

As far as I can see the documentation doesn't say. I wouldn't expect there
to be a problem, but there also isn't an instance Storable (), which I was
expecting to see.

If so, should its alignment be 1 or 0?


-Doug McClean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151218/8f4cd2c3/attachment.html>


More information about the Haskell-Cafe mailing list