<div dir="auto">I used to be confused by the environment files too until I figured out what they are, and now I use them all the time. <div dir="auto"><br></div><div dir="auto">It is really nice to be able to have the "old fashioned" way of just running ghci and having it be aware of the current project your are in.</div><div dir="auto"><br></div><div dir="auto">To me, it really makes sense to be aware of the context by default. To reduce confusion, we could make GHCi be more explicit about telling the user that it loaded a context, but I think 99% of the time I want it to so. So I'd prefer to have a flag to disable the behavior for the 1%, but the default should load the context IMHO</div><div dir="auto"><br></div><div dir="auto">Iavor</div><div dir="auto"><br></div><div dir="auto"><br><div dir="auto"><br></div><div dir="auto"></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019, 08:49 Richard Eisenberg <rae@richarde.dev> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On Mar 28, 2019, at 10:31 AM, Herbert Valerio Riedel <<a href="mailto:hvriedel@gmail.com" target="_blank" rel="noreferrer">hvriedel@gmail.com</a>> wrote:</div><br class="m_3060293720877797612Apple-interchange-newline"><div><span style="font-family:Menlo-Regular;font-size:11px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important">I for one would hate to remove what I consider a useful feature</span></div></blockquote></div><br><div>I don't see anyone is asking for a feature removal here. This thread seems to be more about how to set a default.</div><div><br></div><div>I personally find it surprising for a tool like a compiler to be directory-sensitive. But I've now learned that with `export GHC_ENVIRONMENT=-` in my profile, my compiler indeed isn't directory-sensitive. Furthermore, I've learned how to suppress the env files entirely with `write-ghc-environment-files: never` in my ~/.cabal/config. So I'm not actually all too bothered by this anymore. I retain my opinion that directory-sensitivity is a poor design (it's precisely what threw me off Stack the first time I tried it) for compiler-like tools, but perhaps that ship has sailed, as I agree that changing this now may lead to a poor user experience.</div><div><br></div><div>Richard</div></div>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank" rel="noreferrer">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>