Hi Christian,

Don't think your patch actually came through as an attachment. Can you post 
your patch to our JIRA page? That's the right place to document it and it'll 
let others comment.

https://issues.apache.org/jira/browse/THRIFT

Cheers,
Mark

-----Original Message-----
From: Christian Lavoie [mailto:[email protected]] 
Sent: Tuesday, September 14, 2010 6:28 PM
To: [email protected]
Subject: [PATCH] Make haskell bindings work

The following patch generally makes the haskell bindings compile with
ghc-6.12.3, without -fglasgow-exts, with -Wall -Werror, with -XArrows;
though I haven't actually tested this very thoroughly yet, it does
compile and work with a trivial IDL file.

In particular, it:
  * Adds 'length' to the list of imported symbols from the Prelude in
generated code (not sure how the generated bindings ever compiled
without that)
  * Stops using 'rec' and 'proc' as identifiers, they're keywords when
using -XArrows
  * Adds needed LANGUAGE pragmas (in order to not need -fglasgow-exts)
  * Adds OPTIONS_GHC pragmas needed to bypass -Wall -Werror
  * Cleans up a few style bugs / nitpicks in order to compile with
-Wall when it was trivial (and avoided more OPTIONS_GHC pragmas)

Thoughts?

-- 
Have fun, Christian
http://linkedin.christianlavoie.net

"I won't let you fall apart."

Reply via email to