While working on my new bindings project (using hsc2hs) I came across the __alignof__() statement available in GNU's C compiler. As it turns out, having this computed for me in Storable instances using something like this would be great:
instance Storable Foo where
....
sizeOf _ = #{const sizeof(CFoo)}
alignment _ = #{const __alignof__(CFoo)}
....
Can I rely on hsc2hs using GCC? How many people will hate me if I depend on GCC-specific extensions?
Legal? Acceptable? Infuriating?
/jve