<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Jun 3, 2009 at 8:42 AM, Daniel Fischer <span dir="ltr">&lt;<a href="mailto:daniel.is.fischer@web.de">daniel.is.fischer@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Mittwoch 03 Juni 2009 06:12:46 schrieb Michael Snoyman:<br>
<div class="im"><br>
&gt; I made two changes:<br>
&gt;<br>
&gt; 1. You had the arguments to M.lookup backwards.<br>
&gt; 2. lookup does not return any generalized Monad, just Maybe (I think that<br>
&gt; should be changed).<br>
<br>
</div>Data.Map.lookup used to return a value in any monad you wanted, I believe until 6.8<br>
inclusive.<br>
I don&#39;t think it&#39;s going to change again soon.<br>
<div class="im"></div></blockquote><div><br>Is there a reason why it only returns in the Maybe monad? I often times have to write a liftMaybe function to deal with that.<br><br>Michael <br></div></div></div>