<div dir="ltr">More broadly: the FFI types ghc has should be revamped to add not just that but also the StdInt types like (U)Int_{Ptr,64,32} etc<div><br></div><div>but yes, thats definitely specfied in like c99 or c11, and should be in the ffi addendum etc</div><div><br></div><div>all of the above should also be reflected in the 2020 haskell revision.</div><div><br></div><div>Ostensibly John Wiegley volunteered for that, but if you wanna lead the charge on that, i'm pretty confident he'd be happy to let you.  I'm "cosponsoring" that too, so any way i can help let me know :) </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 2:27 PM, Daniel Cartwright <span dir="ltr"><<a href="mailto:chessai1996@gmail.com" target="_blank">chessai1996@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have recently found it useful while working with the FFI to have a CComplex data type, like so:<div><br></div><div>data CComplex a = Complex {-# UNPACK #-} !a {-# UNPACK #-} !a</div><div><br></div><div>Would something like this be a good addition to Foreign.C.Types?</div></div>
<br>______________________________<wbr>_________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>