[Haskell-cafe] Relying on GCC as the hsc2hs C compiler

John Van Enk vanenkj at gmail.com
Tue Mar 3 16:47:46 EST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090303/e4212911/attachment-0001.htm


More information about the Haskell-Cafe mailing list