[Haskell-beginners] Do IO actions *have* to be glued by the do syntax?

Quanyang Liu lqymgt at gmail.com
Tue Mar 22 11:06:21 UTC 2016


On Tue, Mar 22 2016 at 18:52:41 +0800, Olumide wrote:
> Hello List,
>
> Do IO actions *have* to be glued by the do syntax? Many, if not all,
> the examples that I've come across in LYH seem to suggest so. And if
> so, why?
>
> BTW, if possible I'd appreciate an explanation that does not resort to
> monads. I haven't studied them yet and I'm sure I'd struggle to
> understand any explanation that resorts to monads.
>

I think you should google that first... do blocks are just sugar...

> Thanks,
>
> - Olumide

-- 
Thanks,
Quanyang


More information about the Beginners mailing list