[Haskell-cafe] Better writing about Haskell through multi-metaphor learning
Branimir Maksimovic
branimir.maksimovic at gmail.com
Sat Sep 18 12:11:31 UTC 2021
I don“t see how does that anything to do with Monad ČP
It“s just what you pass as return value.
Do {
…
...
}
that’s just syntactic sugar, to look more nicely.
Greetings, Branimir.
> On 18.09.2021., at 12:34, Joachim Durchholz <jo at durchholz.org> wrote:
>
> Am 18.09.21 um 11:19 schrieb Branimir Maksimovic:
>> This is monad:
>> f(g(h(…)))
>> To make sequence out of functions.
>
> Ah, no. That's just function composition.
>
> A monad can do more - e.g. Maybe interleaves the functions with a check whether it was passed in Nothing.
>
> Regards,
> Jo
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
More information about the Haskell-Cafe
mailing list