[Haskell-beginners] Understanding the function monad ((->) r)
Benjamin Edwards
edwards.benj at gmail.com
Tue Feb 21 10:25:02 UTC 2017
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?
Ben
On Tue, 21 Feb 2017 at 10:15 Olumide <50295 at web.de> wrote:
> Hello List,
>
> I am having enormous difficulty understanding the definition of the bind
> operator of ((->) r) as show below and would appreciate help i this
> regard.
>
> instance Monad ((->) r) where
> return x = \_ -> x
> h >>= f = \w -> f (h w) w
>
> Thanks,
>
> - Olumide
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20170221/ab6588f7/attachment.html>
More information about the Beginners
mailing list