CPP Help (was Re: Latest Template Haskell Breaks Package)
Dominic Steinitz
dominic at steinitz.org
Tue Dec 23 16:10:11 UTC 2014
How very clever of you and thank you very much. Changing ‘ to 1 does fix the problem.
I would have thought this would work
> cabal install --with-gcc=gcc-4.9
But sadly I still got the same error.
Do I need a special version of cpphs?
Dominic Steinitz
dominic at steinitz.org
http://idontgetoutmuch.wordpress.com
On 23 Dec 2014, at 15:58, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Tue, Dec 23, 2014 at 10:46 AM, Dominic Steinitz <dominic at steinitz.org> wrote:
> To restate the problem: this is from code that has not been changed for 2 years. I get
>
> > Examples.hs:42:42: Parse error in pattern: con
> > Failed, modules loaded: none.
>
> I think I see the problem. Are you by any chance on a machine which has clang as its default C compiler (OS X, FreeBSD 9.3?/10.x/STABLE/CURRENT, possibly others)? cpp will in that case malfunction because it won't substitute macro parameters after the single quote:
>
> > minM' (con a#) (con b#) = \
>
> --
> 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/libraries/attachments/20141223/54fd20df/attachment-0001.html>
More information about the Libraries
mailing list