<div dir="ltr">One feature I've always wanted would be able to "manually inline" a function. For example, if I have<br><br><div> foo a = a + a<br></div><div> bar = foo 3</div><div><br></div><div>I'd like to be able to right-click on the invocation of `foo` and select some option to inline it, rewriting the file to read </div><div><br></div><div><div> foo a = a + a<br></div><div> bar = 3 + 3</div></div><div><br></div><div>I think this would make it simple to dive into an abstraction to see what's really going on. For example, imagine a new user is confused by this expression:</div><div> </div><div> Just 3 >> Just 4</div><div><br></div><div>They could right-click on `>>` to see that it is identical to:</div><div><br></div><div> case Just 3 of</div><div> Just _ -> Just 4</div><div> Nothing -> Nothing</div><div><br></div><div></div><div><br></div><div>Which would allow them to easily see that this expression will always evaluate to "Just 4" (and hopefully simplify it). Enlightened,
they could then hit ctrl-z to revert the code to its original state. </div><div><br></div><div>Haskell's purity and laziness makes it one of the only mainstream languages where equational reasoning is really possible, so this feature would play on Haskell's strengths and provide a feature that couldn't be replicated in other languages' IDEs. It would also allow new users to more easily dive in and understand certain abstractions (although how it would work in many cases would be hard to determine).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 3:35 PM Gueven Bay via Haskell-Cafe <<a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings,<br>
<br>
Imagine that you can decide what functionality and features an<br>
Integrated Development Environment for Haskell should get. You can<br>
make this IDE with your wishlist similar in power as other IDEs for<br>
Java for example.<br>
<br>
Now list as many features as you can, what would make the life of a<br>
Haskell developer as comfortable as possible!?<br>
<br>
I am dying to know how this list of features at the end (of this<br>
thread) will look like.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="monospace, monospace"><span style="font-size:13px">Andre Popovitch</span></font><div><font face="monospace, monospace"><span style="font-size:13px">989 627 4376</span></font></div></div></div>