[Haskell-cafe] FFI / enums

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Mon Nov 7 19:44:05 CET 2011

Does this work with  "ghc -XForeignFunctionInterface" ?

I am getting a syntax error right after "#{".
But then, the description is for "hsc2hs" (not  ghc).

And it mentions macros, while C meanwhile has "real" enums.
Well, at leat one can write  "enum match { foo, bar }".

The FFI Addendum does not mention enums at all.

So - what's the agreeable way to do this? - Thanks, J.W.

More information about the Haskell-Cafe mailing list