<div dir="ltr"><div><div><div>The desired editor features are written in the haskell spec?<br></div>I'm talking about the language in an editor/IDE agnostic way.<br></div>If the IDE/editor is hiding it for you, it is because the language failed to be good enough to be "out of the way".<br>

So, I guess this is a +1.<br><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-22 15:04 GMT-03:00 Ben Foppa <span dir="ltr"><<a href="mailto:benjamin.foppa@gmail.com" target="_blank">benjamin.foppa@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why not have an editor that collapses them?</div><div class="gmail_extra"><br><br><div class="gmail_quote">

<div><div class="h5">On Tue, Apr 22, 2014 at 1:59 PM, Thiago Negri <span dir="ltr"><<a href="mailto:evohunz@gmail.com" target="_blank">evohunz@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div>When reading code, I find it quite distracting to have to get past the import list to reach the actual module code, as the import list can be (and often is) quite big.<br>


</div>

<br></div>So, why not issue import statements at the bottom of a module file?<br><br></div>Likewise, we can use "where" statements to define names used in a function after using them, so they don't distract the reader.<br>




<br></div>I'm against imports at the middle of the file.<br></div>But I guess being able to issue them at the end of the module could make sense if you want to get the reader straight to the code.<br><br></div><div>A language pragma could be used to select between top imports or bottom imports (can't use both).<br>




</div><div><br></div><div>What do you think?<br></div><div><br></div><div>Example:<br><br></div><div>"""<br></div><div>{-# LANGUAGE LateImports #-}<br></div><div>module Foo where<br><br></div><div>bar :: String<br>




bar = "quux"<br><br></div><div>baz :: Fiz<br></div><div>baz = mkFiz<br><br></div><div>import Fiz (Fiz, mkFiz)<br>"""<br><br></div></div>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>