Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: Do IO actions *have* to be glued by the do syntax? (Olumide) ---------------------------------------------------------------------- Message: 1 Date: Tue, 22 Mar 2016 11:56:21 +0000 From: Olumide <50...@web.de> To: sumit.sahrawat.ap...@iitbhu.ac.in, The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Do IO actions *have* to be glued by the do syntax? Message-ID: <56f132e5.8010...@web.de> Content-Type: text/plain; charset=windows-1252; format=flowed Sumit, I do, and did, look up other resources but none emphasized that IO actions have to be bound, and that's why I asked here. I'm sure it will become clearer when I reach the chapter on monads. @Martin: I realize that I am equally responsible for the culture of the list and will also try to be friendlier ... - Olumide On 22/03/2016 11:46, Sumit Sahrawat, Maths & Computing, IIT (BHU) wrote: > Olumide, do blocks are indeed syntactic sugar. They are a piece of > syntax that converts to a specific type of expressions, namely those > using the bind (>>=) operator. > > It is really helpful, when learning to be able to come up with answers > in your own. Learning Haskell has always involved combining many > different perspectives on the same topic, told differently in different > places. It would only help you if you took the time and dug further for > answers. It's really satisfying too! > > Also, if you haven't, search for the Leavenworth guide. It takes this > very question in one of the miscellaneous discussions. > > Be nice, be respectful. Have fun learning Haskell :) > > On 22-Mar-2016 5:07 pm, "Olumide" <50...@web.de <mailto:50...@web.de>> > wrote: > > Quanyang, > > do bocks are *not* sugar, and please refer to Daniel's answer for an > example of how to answer a beginner's question. > > - Olumide > > On 22/03/2016 11:06, Quanyang Liu wrote: > > 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 > > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org <mailto:Beginners@haskell.org> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > > ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 93, Issue 17 *****************************************