Thanks very much for the url; helpful site. I got mapM to do what I wanted (first time I've used it); cool function; now I understand it. At your note for mapM I noticed (mapM print); I've been using (show [list]) so much, (mapM print) will be nice for formatting while debugging, etc. Thanks again! -- Peter On Thu, Nov 18, 2010 at 3:44 PM, Henk-Jan van Tuyl <hjgtuyl@chello.nl>wrote:
On Thu, 18 Nov 2010 21:20:10 +0100, Peter Schmitz <ps.haskell@gmail.com> wrote:
Thank you very much for the help. Good tips for improving my code design.
I'm new to sequence, mapM, and mapM_; I've seen mapM a lot while reading code and wanted to learn it; now I have a reason! Thanks. -- Peter
You can find explanations, with usage examples, of these functions at http://members.chello.nl/hjgtuyl/tourdemonad.html
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ <http://van.tuyl.eu/> http://members.chello.nl/hjgtuyl/tourdemonad.html --