<div dir="ltr">What is it that you are having difficulty with? Is it "why" this is a good definition? Is it that you don't understand how it works?<div><br></div><div>Ben</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 21 Feb 2017 at 10:15 Olumide <<a href="mailto:50295@web.de">50295@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello List,<br class="gmail_msg">
<br class="gmail_msg">
I am having enormous difficulty understanding the definition of the bind<br class="gmail_msg">
operator of ((->) r) as show below and would appreciate help i  this regard.<br class="gmail_msg">
<br class="gmail_msg">
instance Monad ((->) r) where<br class="gmail_msg">
     return x = \_ -> x<br class="gmail_msg">
     h >>= f = \w -> f (h w) w<br class="gmail_msg">
<br class="gmail_msg">
Thanks,<br class="gmail_msg">
<br class="gmail_msg">
- Olumide<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Beginners mailing list<br class="gmail_msg">
<a href="mailto:Beginners@haskell.org" class="gmail_msg" target="_blank">Beginners@haskell.org</a><br class="gmail_msg">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" class="gmail_msg" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br class="gmail_msg">
</blockquote></div>