[Haskell-cafe] FFI / enums

Brandon Allbery allbery.b at gmail.com
Mon Nov 7 19:49:23 CET 2011

On Mon, Nov 7, 2011 at 13:44, Johannes Waldmann <
waldmann at imn.htwk-leipzig.de> wrote:

> Does this work with  "ghc -XForeignFunctionInterface" ?
> http://en.wikibooks.org/wiki/Haskell/FFI#Enumerations
> I am getting a syntax error right after "#{".
> But then, the description is for "hsc2hs" (not  ghc).

hsc2hs translates metalanguage such as that to the code GHC expects.

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111107/d97c16a8/attachment.htm>

More information about the Haskell-Cafe mailing list