[Haskell-cafe] Using stringize and string concatenation in ghc preprocessing
acowley at seas.upenn.edu
Tue Jan 24 16:07:38 UTC 2017
> On Jan 24, 2017, at 3:11 AM, Andrew Butterfield <Andrew.Butterfield at scss.tcd.ie> wrote:
> Why not write a new Haskell version of CPP with a more corporate-friendly OS license?
> (HPP ?)
I already wrote hpp, and it's been on hackage for a while now. Its test suite puts it through the spec conformance portion of the mcpp test suite, so one can be somewhat confident that it does the fiddly things correctly. That said, I did find and fix bugs when running it over lens (a sigil-rich environment, to be sure) during testing, so there may yet be Haskell code it doesn't play well with.
It is fairly fast, memory-efficient, written entirely in Haskell, on GitHub, and BSD-licensed.
>> On 23 Jan 2017, at 23:43, Ben Franksen <ben.franksen at online.de> wrote:
>> Am 23.01.2017 um 23:25 schrieb Sven Panne:
>>> 2017-01-23 22:42 GMT+01:00 Ben Franksen <ben.franksen at online.de>:
>>> We could talk endlessly about this
>> Right. I am tired of it, too. I am ready to concede that there are
>> /enough/ of these people around that it is a real problem for some
>> Haskell users.
>> For me things are exactly the opposite: as a Haskell preprocessor, using
>> cpphs is the much safer option compared to CPP. History has shown that
>> e.g. the gcc developers change cpp's behaviour in ways that are
>> incompatible with using cpp for anything other than C or C++, even if
>> that means interpreting the C standard in quite a liberal way.
>> I would very much like to be able to use cpphs as a drop-in replacement
>> for cpp and to be able to change the default cpp in a ghc configuration
>> file, rather than at compile time (so I can still use a ghc packaged for
>> my distro).
>> "Make it so they have to reboot after every typo." ― Scott Adams
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> Only members subscribed via the mailman list are allowed to post.
> Andrew Butterfield
> School of Computer Science & Statistics
> Trinity College
> Dublin 2, Ireland
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
More information about the Haskell-Cafe