[Haskell-beginners] Recursive macros in hsc2hs
Magnus Therning
magnus at therning.org
Wed Jul 15 09:15:24 EDT 2009
On Wed, Jul 15, 2009 at 5:21 AM, Brandon S. Allbery
KF8NH<allbery at ece.cmu.edu> wrote:
> On Jul 14, 2009, at 22:51 , Maurí cio wrote:
>>
>> I'm trying to define a macro inside a template that generates
>> an existing macro:
>
>
> Won't fly; cpp doesn't scan its own output recursively, so if you generate a
> #define in a macro it will appear in the output unexpanded. AFAIK cpphs is
> no different.
Maybe it's time for someone to write m4hs? ;-)
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
More information about the Beginners
mailing list