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:
Ashley Yakeley [EMAIL PROTECTED] wrote,
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?
Well, my answer to this is the same as to Antony's C enum
question.
At 2002-10-17 17:55, Manuel M T Chakravarty wrote:
Why do all the work yourself when a tool can do it for you?
A tool has its own overhead. For instance, I'd have to make sure c2hs is
installed on all platforms I build on.
If I start doing a lot more FFI, I might switch over. But right now