<div dir="ltr">How would this work with ghci?  If I'm understanding correctly, the proposal means users could no longer do:<div><br></div><div style>  $ ghci SomeFile.hs</div><div style><br></div><div style>and have it work without manually specifying all -package flags.  Did I miss something?</div>
<div style><br></div><div style>I think it would work in conjuction with the package environments stuff, provided that were available on all platforms ghc supports.</div><div style><br></div><div style>John L.</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 11:12 PM, Edward Z. Yang <span dir="ltr"><<a href="mailto:ezyang@mit.edu" target="_blank">ezyang@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Excerpts from Edward Z. Yang's message of 2014-07-24 15:57:05 +0100:<br>
<div class="">> - It assumes *-hide-all-packages* at the beginning.  This scheme<br>
>   probably works less well without that: now we need some consistent<br>
>   view of the database to start with.<br>
<br>
</div>Actually, thinking about this, this dovetails nicely with the "package<br>
environments" work the IHG is sponsoring.  The idea behind a package<br>
environment is you specify some set of installed package IDs, which<br>
serves as the visible slice of the package database which is used for<br>
compilation.  Then, ghc called without any arguments is simply using<br>
the *default* package environment.<br>
<br>
Furthermore, when users install packages, they may or may not decide<br>
to add the package to their global environment, and they can be informed<br>
if the package is inconsistent with a package that already is in their<br>
environment (mismatched dependencies).  A user can also request to<br>
upgrade a package in their environment, and Cabal could calculate how<br>
all the other packages in the environment would need to be upgraded<br>
in order to keep the environment consistent, and run this plan for the<br>
user.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
Edward<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>