[Haskell-cafe] GHC API question: Getting access to cpp processed source
alan.zimm at gmail.com
Wed Sep 11 08:35:11 CEST 2013
Thanks for the reference, but GHC already invokes the CPP.
I think I am going to have to invoke a load of the module with ghc flags
set to keep the output of the CPP phase, and then re-invoke it on that
output to get the tokens.
My question is more whether this CPP output can be kept in the GHC session
for re-use, or whether I will have to mess around on the file system.
On Wed, Sep 11, 2013 at 12:56 AM, Henk-Jan van Tuyl <hjgtuyl at chello.nl>wrote:
> On Wed, 11 Sep 2013 00:54:07 +0200, Henk-Jan van Tuyl <hjgtuyl at chello.nl>
> Another option could be the cpphs package; the documentation has
>> disappeared from haskell.org, but can be found in the Web Archive.
> I just found the latest documentation at
> Henk-Jan van Tuyl
> Folding at home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> Haskell programming
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe