
13 Dec
2013
13 Dec
'13
11 a.m.
Could anyone explain how to write a Storable instance for MyStruct? (The key field allows to determine the type of a value inside the union.) typedef enum Key_ { ONE = 1, FOUR = 4, TWENTY = 20 } Key; struct MyStruct { Key key; union { Foo one; uint64_t four; void *twenty; }; }; Also, should I use hsc2hs to make the resulting code portable?