<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>



<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<h3>
Andreas Klebinger pushed to branch wip/andreask/tools_unlines
at <a href="https://gitlab.haskell.org/ghc/ghc">Glasgow Haskell Compiler / GHC</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/a9d525389b3e560e9760ac550bba82656b3b415b">a9d52538</a></strong>
<div>
<span>by Andreas Klebinger</span>
<i>at 2020-03-31T14:49:32+02:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Turn newlines into spaces for hadrian/ghci.

The newlines break the command on windows.
</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#a96e3a5e5d05a1ef5039dc52830b2d753f48055d">
hadrian/ghci-cabal
</a>
</li>
<li class="file-stats">
<a href="#34c701bbc23b4b5ec8a054a3e922951c161cbb25">
hadrian/ghci-stack
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="a96e3a5e5d05a1ef5039dc52830b2d753f48055d">
<a href="https://gitlab.haskell.org/ghc/ghc/-/commit/a9d525389b3e560e9760ac550bba82656b3b415b#a96e3a5e5d05a1ef5039dc52830b2d753f48055d"><strong>hadrian/ghci-cabal</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 90%;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -2,5 +2,6 @@</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2
</td>
<td class="diff-line-num new_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC2" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="3" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
3
</td>
<td class="diff-line-num new_line" data-linenumber="3" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
3
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC3" class="line" lang="shell"><span class="nb" style="color: #0086b3;">set</span> <span class="nt" style="color: #000080;">-e</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="4" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
4
</td>
<td class="diff-line-num new_line" data-linenumber="4" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
4
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC4" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
5
</td>
<td class="diff-line-num new_line old" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
 
</td>
<td class="line_content old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC5" class="line" lang="shell"><span class="nv" style="color: #008080;">GHC_FLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$GHC_FLAGS</span><span class="s2" style="color: #d14;"> </span><span class="si" style="color: #d14;">$(</span><span class="nv" style="color: #008080;">TERM</span><span class="o" style="font-weight: 600;">=</span>dumb <span class="nv" style="color: #008080;">CABFLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="nt" style="color: #000080;">-v0</span> <span class="s2" style="color: #d14;">"hadrian/build-cabal"</span> tool-args <span class="nt" style="color: #000080;">-q</span> <span class="nt" style="color: #000080;">--build-root</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci <span class="nt" style="color: #000080;">--flavour</span><span class="o" style="font-weight: 600;">=</span>ghc-in-ghci <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span><span class="si" style="color: #d14;">)</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
5
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC5" class="line" lang="shell"><span class="c" style="color: #998; font-style: italic;"># Replace newlines with spaces, as these otherwise break the ghci invocation on windows.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
6
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC6" class="line" lang="shell"><span class="nv" style="color: #008080;">GHC_FLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$GHC_FLAGS</span><span class="s2" style="color: #d14;"> </span><span class="si" style="color: #d14;">$(</span><span class="nv" style="color: #008080;">TERM</span><span class="o" style="font-weight: 600;">=</span>dumb <span class="nv" style="color: #008080;">CABFLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="nt" style="color: #000080;">-v0</span> <span class="s2" style="color: #d14;">"hadrian/build-cabal"</span> tool-args <span class="nt" style="color: #000080;">-q</span> <span class="nt" style="color: #000080;">--build-root</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci <span class="nt" style="color: #000080;">--flavour</span><span class="o" style="font-weight: 600;">=</span>ghc-in-ghci <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span> | <span class="nb" style="color: #0086b3;">tr</span> <span class="s1" style="color: #d14;">'\n\r'</span> <span class="s1" style="color: #d14;">' '</span><span class="si" style="color: #d14;">)</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
6
</td>
<td class="diff-line-num new_line" data-linenumber="7" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
7
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC7" class="line" lang="shell">ghci <span class="nv" style="color: #008080;">$GHC_FLAGS</span> <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span> <span class="nt" style="color: #000080;">-fno-code</span> <span class="nt" style="color: #000080;">-fwrite-interface</span> <span class="nt" style="color: #000080;">-hidir</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci/interface <span class="nt" style="color: #000080;">-O0</span> ghc/Main.hs +RTS <span class="nt" style="color: #000080;">-A128m</span></span></pre>
</td>
</tr>

</table>
<br>
</li>
<li id="34c701bbc23b4b5ec8a054a3e922951c161cbb25">
<a href="https://gitlab.haskell.org/ghc/ghc/-/commit/a9d525389b3e560e9760ac550bba82656b3b415b#34c701bbc23b4b5ec8a054a3e922951c161cbb25"><strong>hadrian/ghci-stack</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 90%;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -2,5 +2,6 @@</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2
</td>
<td class="diff-line-num new_line" data-linenumber="2" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC2" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="3" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
3
</td>
<td class="diff-line-num new_line" data-linenumber="3" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
3
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC3" class="line" lang="shell"><span class="nb" style="color: #0086b3;">set</span> <span class="nt" style="color: #000080;">-e</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="4" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
4
</td>
<td class="diff-line-num new_line" data-linenumber="4" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
4
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC4" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
5
</td>
<td class="diff-line-num new_line old" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
 
</td>
<td class="line_content old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC5" class="line" lang="shell"><span class="nv" style="color: #008080;">GHC_FLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$GHC_FLAGS</span><span class="s2" style="color: #d14;"> </span><span class="si" style="color: #d14;">$(</span><span class="nv" style="color: #008080;">TERM</span><span class="o" style="font-weight: 600;">=</span>dumb <span class="nv" style="color: #008080;">CABFLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="nt" style="color: #000080;">-v0</span> <span class="s2" style="color: #d14;">"hadrian/build-stack"</span> tool-args <span class="nt" style="color: #000080;">-q</span> <span class="nt" style="color: #000080;">--build-root</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci <span class="nt" style="color: #000080;">--flavour</span><span class="o" style="font-weight: 600;">=</span>ghc-in-ghci <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span><span class="si" style="color: #d14;">)</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="5" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
5
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC5" class="line" lang="shell"><span class="c" style="color: #998; font-style: italic;"># Replace newlines with spaces, as these otherwise break the ghci invocation on windows.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
6
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC6" class="line" lang="shell"><span class="nv" style="color: #008080;">GHC_FLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$GHC_FLAGS</span><span class="s2" style="color: #d14;"> </span><span class="si" style="color: #d14;">$(</span><span class="nv" style="color: #008080;">TERM</span><span class="o" style="font-weight: 600;">=</span>dumb <span class="nv" style="color: #008080;">CABFLAGS</span><span class="o" style="font-weight: 600;">=</span><span class="nt" style="color: #000080;">-v0</span> <span class="s2" style="color: #d14;">"hadrian/build-stack"</span> tool-args <span class="nt" style="color: #000080;">-q</span> <span class="nt" style="color: #000080;">--build-root</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci <span class="nt" style="color: #000080;">--flavour</span><span class="o" style="font-weight: 600;">=</span>ghc-in-ghci <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span> | <span class="nb" style="color: #0086b3;">tr</span> <span class="s1" style="color: #d14;">'\n\r'</span> <span class="s1" style="color: #d14;">' '</span><span class="si" style="color: #d14;">)</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="6" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
6
</td>
<td class="diff-line-num new_line" data-linenumber="7" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
7
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC7" class="line" lang="shell">stack <span class="nb" style="color: #0086b3;">exec</span> <span class="nt" style="color: #000080;">--</span> ghci <span class="nv" style="color: #008080;">$GHC_FLAGS</span> <span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$@</span><span class="s2" style="color: #d14;">"</span> <span class="nt" style="color: #000080;">-fno-code</span> <span class="nt" style="color: #000080;">-fwrite-interface</span> <span class="nt" style="color: #000080;">-hidir</span><span class="o" style="font-weight: 600;">=</span>.hadrian_ghci/interface <span class="nt" style="color: #000080;">-O0</span> ghc/Main.hs +RTS <span class="nt" style="color: #000080;">-A128m</span></span></pre>
</td>
</tr>

</table>
<br>
</li>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/commit/a9d525389b3e560e9760ac550bba82656b3b415b">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.haskell.org.
If you'd like to receive fewer emails, you can
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.haskell.org/ghc/ghc/-/commit/a9d525389b3e560e9760ac550bba82656b3b415b"}}</script>


</p>
</div>
</body>
</html>