[Haskell-cafe] Current status of Mavericks CPP

Brandon Allbery allbery.b at gmail.com
Wed Apr 16 06:38:21 UTC 2014

On Wed, Apr 16, 2014 at 2:33 AM, Michael Snoyman <michael at snoyman.com>wrote:

> So if I'm reading this all correctly:
> 1. Package authors are *not* encouraged to change their code to try and
> work around this issue.
> 2. Medium/long term, this won't be a problem at all due to changes in GHC
> itself.
> 3. Short term, users need to follow the instructions at [1] if they're
> using GHC 7.6 (or earlier?).

Pretty much, although practically I suspect some packages *will* be changed
to be compliant with clang's cpp simply because the community may not be
able or willing to wait until the dependency on a C-parsing tool is
removed. And there are some programs on Hackage which are broken even with
the clang wrapper script because there is no way to tell clang's cpp not to
recognize ANSI C splices (gcc's -traditional disables them) or to accept '
as a possible identifier character (someone earlier today on #haskell
pointed out that they need to make sure there's an even number of '
characters on each line when using -XCPP... which makes sense when cpp
needs to parse (char) constants).

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://www.haskell.org/pipermail/haskell-cafe/attachments/20140416/23721a7a/attachment.html>

More information about the Haskell-Cafe mailing list