Stefan, The reason why Template Haskell doesn't work on the current GHC-iPhone compiler is because when I tweaked the build to cross compile, I just took the Stage 1 compiler as the cross compiler. And, by default, the stage 1 compiler doesn't support TH. It is most likely just a matter of throwing a switch in the build somewhere. I believe the TH code is interpreted, so the ARM back end should not be an issue. Unfortunately, fixing this is nowhere near my priority list at the moment. If you want to attempt it, I've given detailed instructions on how to build the compiler, so you should have no trouble. It builds well on Snow Leopard, and takes about an hour or so. I'll help with answering questions as much as I can. Steve On 20/01/11 13:22, Stefan Kersten wrote:
hi,
i'm trying to compile a project with ghc-iphone (ghc-iphone-binary-1.6-sdk-4.2), but some libraries (e.g. data-accessor-template) fail with an error like this:
Template Haskell bracket illegal in a stage-1 compiler
any ideas how to solve this problem?
many thanks, <sk>
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone