C Struct Field Access

Simon Marlow simonmar at microsoft.com
Thu Oct 17 05:12:38 EDT 2002

> What's the best strategy for accessing fields in someone 
> else's C struct? 
> Should I write my own glue file with accessor functions? Or 
> should I make 
> a Storable instance for the struct?

I wrote some stuff on accessing C structs from Haskell recently which
might be useful:



More information about the FFI mailing list