Relying on GCC as the hsc2hs C compiler

3 Mar
2009
3 Mar
'09
4:47 p.m.
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
5923
Age (days ago)
5923
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Van Enk