<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">How very clever of you and thank you very much. Changing ‘ to 1 does fix the problem.<div><br></div><div>I would have thought this would work</div><div><br></div><div><blockquote type="cite">cabal install --with-gcc=gcc-4.9</blockquote><br></div><div>But sadly I still got the same error.</div><div><br></div><div>Do I need a special version of cpphs?</div><div><br><div apple-content-edited="true">
<div>Dominic Steinitz</div><div><a href="mailto:dominic@steinitz.org">dominic@steinitz.org</a></div><div><a href="http://idontgetoutmuch.wordpress.com">http://idontgetoutmuch.wordpress.com</a></div>

</div>
<br><div><div>On 23 Dec 2014, at 15:58, Brandon Allbery <<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 23, 2014 at 10:46 AM, Dominic Steinitz <span dir="ltr"><<a href="mailto:dominic@steinitz.org" target="_blank">dominic@steinitz.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":24b" class="" style="overflow:hidden">To restate the problem: this is from code that has not been changed for 2 years. I get<br>
<br>
> Examples.hs:42:42: Parse error in pattern: con<br>
> Failed, modules loaded: none.<br></div></blockquote></div><br>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:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="font-size:12px">>     minM' (con a#) (con b#) =                                        \</span><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net/" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>
</blockquote></div><br></div></body></html>