so what are you proposing? Are you agreeing that those patches work with clang wrapper, but also remarking that its unfortunate that such a hack is needed?

 


On Tue, Nov 19, 2013 at 4:52 PM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:
> So did you find a bug in the current design of the clang-wrapper hack?

No. What I found is that the current design of the clang-wrapper hack
is appropriate.

"-x assembler-with-cpp" is necessary to rescue
----
{-# RULE whatever
  #-}
---

> If so it'd be better to get it fixed there rather than in the
> Alex/happy setup HS files.

If we can do this, it's very good. But this is not good enough.
happy/alex hack are also necessary to not generate
----
 # 1 "<built-inxxx>" 1

 # 1 "templates/GenericTemplatexxx.hs" 2
----

--Kazu