Using stringize and string concatenation in ghc preprocessing

Brandon Allbery allbery.b at
Sun Aug 21 20:52:21 UTC 2016

On Sun, Aug 21, 2016 at 4:31 PM, Boespflug, Mathieu <m at> wrote:

> I ran into this very problem recently. Turns out -traditional knows string
> concatenation too. I seem to remember learning this by browsing the GHC
> source code, but now I can't find any occurrence of this pattern. But
> here's an example of how to do string concatenation with CPP in
> -traditional mode:
> a4e481aa5180b6ec93c219f827aefe932b66a953/inline-java/src/
> Foreign/JNI.hs#L274
> .

That's the hacky K&R way I mentioned earlier.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list