<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> [StackSet.hs: (peek): why use return when you just mean Just? it<br> will just confuse the n00bs and return to haunt you later. Brent
<br> Yorgey <<a href="mailto:byorgey@gmail.com">byorgey@gmail.com</a>>**20071022190732] {<br> hunk ./StackSet.hs 314<br> -peek = with Nothing (return . focus)<br> +peek = with Nothing (Just . focus)<br> }
<br><br>I used return . focus here because it reads nicely :)<br>After all, peek returns focus..</blockquote><div><br>Ah. Well, you can keep it if you really want. =) It's just that I had to stare at it for a while to convince myself that I understood what it was doing. Especially in juxtaposition with the previous function (which has (Just . f)), it made me think, "wait, hmm, there must be a good reason that this one uses return but the one above uses Just..." It took me a while to realize that no, there really wasn't.
<br><br>-Brent</div></div>