
On 21/02/2017 10:25, Benjamin Edwards wrote:
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?
I simply can't grok f (h w) w. - Olumide
On Tue, 21 Feb 2017 at 10:15 Olumide <50295@web.de mailto:50295@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@haskell.org mailto:Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners