Using stringize and string concatenation in ghc preprocessing
Brandon Allbery
allbery.b at gmail.com
Sun Aug 21 20:52:21 UTC 2016
On Sun, Aug 21, 2016 at 4:31 PM, Boespflug, Mathieu <m at tweag.io> 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: https://github.com/tweag/sparkle/blob/
> 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 gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20160821/c081314e/attachment.html>
More information about the ghc-devs
mailing list