18 Oct
2002
18 Oct
'02
8:55 a.m.
Ashley Yakeley <ashley@semantic.org> 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. Specifically, see http://www.cse.unsw.edu.au/~chak/haskell/c2hs/docu/c2hs-3.html#ss3.8 Why do all the work yourself when a tool can do it for you? Manuel