Storable laws

John Wiegley johnw at newartisans.com
Wed Mar 7 19:13:39 UTC 2018


>>>>> "EL" == Evan Laforge <qdunkan at gmail.com> writes:

EL> If you are writing a new C binding, I recommend something higher-level
EL> than hsc2hs, such as c2hs, which I think should sidestep the problem
EL> entirely by verifying your types. But if you are already using hsc2hs and
EL> for whatever reason don't want subtle memory corruption bugs, you can
EL> import ForeignC instead of Foreign and Foreign.C, and see if you have any.

Note that c2hsc is even higher, since it will generate the .hsc files for you
from the C headers.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2


More information about the Libraries mailing list