<div dir="ltr"><div>I imagine I have completely missed the boat on this one, but would like to test the waters on including the following [1] patch<br><br>---------------------------------------------<br>Add hook for creating ghci external interpreter
    

    <div class="gmail-commit-desc"><pre>The external interpreter is launched by calling
'System.Process.createProcess' with a 'CreateProcess' parameter.

The current value for this has the 'std_in', 'std_out' and 'std_err'
fields use the default of 'Inherit', meaning that the remote interpreter
shares the stdio with the original ghc/ghci process.

This patch introduces a new hook to the DynFlags, which has an
opportunity to override the 'CreateProcess' fields, launch the process,
and retrieve the stdio handles actually used.

So if a ghci external interpreter session is launched from the GHC API
the stdio can be redirected if required, which is useful for tooling/IDE
integration.<br>-----------------------------<br></pre></div><br></div>It is not behaviour-changing unless the hook is actually used, but does make a change to Hooks and hence DynFlags.<br><div><br></div><div>I think it can potentially make a lot more options available for IDE tooling, and it would be great to have it available in GHC 8.0.x already.<br><br></div><div>Alan<br></div><div><br><br><br><br>[1] <a href="https://github.com/alanz/ghc/commit/6225d94056400c525a2b710aa31a74b5ea1d5f62">https://github.com/alanz/ghc/commit/6225d94056400c525a2b710aa31a74b5ea1d5f62</a><br></div></div>