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