SV: [Haskell-cafe] RFC: "Native -XCPP" Proposal
Bardur Arantsson
spam at scientician.net
Thu May 21 14:54:11 UTC 2015
On 05/21/2015 12:31 PM, Herbert Valerio Riedel wrote:
> Hi Yitzchak,
>
> On 2015-05-21 at 11:25:46 +0200, Yitzchak Gale wrote:
>
> [...]
>
>> Bardur Arantsson wrote:
>>> I don't see any need for an option. Just bundle cpphs together with GHC
>>> and build/use it as an external program. AFAICT this has absolutely no
>>> licensing implications for GHC, derived from GHC or anything compiled
>>> with GHC.
>>
>> Agreed, that would work. But I thought that the idea was that we wanted
>> it actually integrated into GHC.
>
> That would be the preferred way from a technical standpoint, as it would
> avoid fork/exec and make it easier to integrate the CPP-phase tighter
> into the lexer/parser.
fork/exec is almost certainly going to be negligable compared to the
overall compile time anyway. It's not like GHC is fast enough for it to
matter.
More information about the ghc-devs
mailing list