CComplex type

Daniel Cartwright chessai1996 at gmail.com
Tue May 29 18:27:43 UTC 2018


I have recently found it useful while working with the FFI to have a
CComplex data type, like so:

data CComplex a = Complex {-# UNPACK #-} !a {-# UNPACK #-} !a

Would something like this be a good addition to Foreign.C.Types?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180529/12a1bee5/attachment.html>


More information about the Libraries mailing list