<div dir="ltr">Ah, it looks like it is because of  the pre-processor. This file has CPP enabled:<p class="gmail-p1"><span class="gmail-s1">{</span><span class="gmail-s2">-# LANGUAGE CPP #-</span><span class="gmail-s1">}</span><span class="gmail-s3"> </span></p><div><br></div><div>-harendra</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2017 at 03:52, Harendra Kumar <span dir="ltr"><<a href="mailto:harendra.kumar@gmail.com" target="_blank">harendra.kumar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi devs,</div><div><br></div><div>I am making a change in runghc on the ghc master branch. When compiling the following code (edited/new code in utils/runghc):</div><div><br></div><div>208 splitGhcNonGhcArgs :: [String] -> IO ([String], [String])</div><div>209 splitGhcNonGhcArgs args = do</div><div>210    let (ghc, other) = break notAFlag args</div><div>211    when (hasUnescapedGhcArgs ghc) $</div><div>212        hPutStrLn stderr "yy\</div><div>213                                    \ xx"</div><div><br></div><div>I get an error because of the string continuation at line 212. If I put the backslashes on the same line I do not get any error. I have more string continuations in the same file and they all work fine. This snippet works fine with ghc-7.10.3/ghc-8.0.1 when compiled separately. Here is the error message that I get:</div><div><br></div><div>







<p class="m_-6126979661391356724gmail-p1"><span class="m_-6126979661391356724gmail-s1">utils/runghc/Main.hs:212:56: </span><span class="m_-6126979661391356724gmail-s2">error:</span></p>
<p class="m_-6126979661391356724gmail-p1"><span class="m_-6126979661391356724gmail-s1">    lexical error in string/character literal at character 'x'</span></p>
<p class="m_-6126979661391356724gmail-p2"><span class="m_-6126979661391356724gmail-s1">       |</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s3">212 |</span><span class="m_-6126979661391356724gmail-s1">         hPutStrLn stderr "yy\</span></p>
<p class="m_-6126979661391356724gmail-p4"><span class="m_-6126979661391356724gmail-s3">       |</span><span class="m_-6126979661391356724gmail-s1">                                                        ^</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">utils/runghc/<a href="http://ghc.mk:30" target="_blank">ghc.mk:30</a>: recipe for target 'utils/runghc/dist-install/<wbr>build/Main.dyn_o' failed</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">make[2]: *** [utils/runghc/dist-install/<wbr>build/Main.dyn_o] Error 1</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">Makefile:122: recipe for target 'all_utils/runghc' failed</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">make[1]: *** [all_utils/runghc] Error 2</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">make[1]: Leaving directory '/vol/hosts/cueball/workspace/<wbr>play/ghc'</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">../../mk/<a href="http://sub-makefile.mk:50" target="_blank">sub-makefile.mk:50</a>: recipe for target 'all' failed</span></p>
<p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">make: *** [all] Error 2</span></p><p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1"><br></span></p><p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">Any help will be appreciated. I can send the modified file if anyone wants to reproduce/debug.</span></p><span class="HOEnZb"><font color="#888888"><p class="m_-6126979661391356724gmail-p3"><span class="m_-6126979661391356724gmail-s1">-harendra</span></p></font></span></div></div>
</blockquote></div><br></div>