<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">vector generates a considerable amount of code using CPP macros.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">And with regard to other mails, I'm not too eager (personally) to port that to template Haskell, even though I'm no fan of CPP. The code generation being done is so dumb that CPP is pretty much perfect for it, and TH would probably just be more work (and it's certainly more work to write it again now that it's already written).<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 6, 2015 at 10:21 AM, Bardur Arantsson <span dir="ltr"><<a href="mailto:spam@scientician.net" target="_blank">spam@scientician.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06-05-2015 15:05, Alan & Kim Zimmerman wrote:<br>
> Perhaps it makes sense to scan hackage to find all the different CPP idioms<br>
> that are actually used in Haskell code, if it is a small/well-defined set<br>
> it may be worth writing a simple custom preprocessor.<br>
><br>
<br>
</span>+1, I'll wager that the vast majority of usages are just for version<br>
range checks.<br>
<br>
If there are packages that require more, they could just keep using the<br>
system-cpp or, I, guess cpphs if it gets baked into GHC. Like you, I'd<br>
want to see real evidence that that's actually worth the<br>
effort/complication.<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div></div>