CComplex type

Daniel Cartwright chessai1996 at
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: <>

More information about the Libraries mailing list