[Haskell-cafe] FFI question

Donn Cave donn at avvanta.com
Wed Sep 10 06:19:08 UTC 2014


quoth "Vasili I. Galchin",

> Bottom line is how can I do arithmetic (addition) on two #const's ???

I'm sorry to say I haven't been following the thread, but on the face of it,
this seems easy to me - you just use the (C) addition operator!

like,  (#const CPPSYMA + CPPSYMB)

I assume you're using hsc2hs.

	Donn


More information about the Haskell-Cafe mailing list