deriving instances of Storable

Malcolm Wallace Malcolm.Wallace at
Wed Feb 5 05:55:20 EST 2003

"mike V" <mivori at> writes:

> Is there any merit in the idea of allowing instances of Storable to be 
> derived in a similar fashion to Show, providing that constituents are of
> class Storable.
> The benefits would be significant - automatic marshalling of structures.
> uses: storing to disk, passing over network etc etc..

For storage and transmission needs, what you really want is binary
serialisation.  There are a couple of implementations of class Binary
out there already - have a look at the libraries at list for
the most recent discussion.


More information about the FFI mailing list