Haskell state monads, part 2

Jan 22, 2008 21:46


In my previous post, I described in general terms how state transformations are represented in functional languages like Haskell that don't have the concept of mutable state (assignment to variables). There are different ways to do this, but the way that most closely simulates the way things work in imperative languages is by using state monads. ( Read more... )

Leave a comment

Comments 9

flipzagging February 19 2008, 08:30:27 UTC
Hey there. Just so you know, I'm enjoying your posts, and look forward to part 3.

I blew a gasket a few weeks ago on a particularly bad Haskell tutorial and yours is one of the first Monad tutorials to really make sense to me.

Reply

mvanier February 19 2008, 11:18:58 UTC
Thanks. Sorry part 3 has been so long in coming -- life has been pretty hectic lately. Rest assured, it's coming.

Reply

arturomcclam October 9 2008, 17:07:31 UTC
Posted by: Peter Rosenbeck | November AM I made the choice a couple of weeks ago to study Ocaml instead of Haskell as my first functional language, and I am really enjoying it.

Reply

irvinghaymes October 17 2008, 07:56:26 UTC
Posted by: Peter Rosenbeck | November AM I made the choice a couple of weeks ago to study Ocaml instead of Haskell as my first functional language, and I am really enjoying it.

Reply


phoenixblitz August 7 2008, 09:35:02 UTC
Hi just read your post. Finally it all makes sense now ;)

Seriously you have a talent for explaining things logically and at a good pace (which not all book writers have). Maybe write a book about the black-hole of Haskell monadic functional programming? I should think that a book on that is really in demand since usually people get on well with Haskell until the term Monad crops up.

Thanks for taking the time to write these posts.

Reply

mvanier August 8 2008, 00:43:30 UTC
Thanks a lot for your kind comments! It's things like this that encourage me to keep writing.

Reply


anonymous October 6 2008, 15:04:13 UTC
Excellent writeup. Waiting for part 3 ... which I feel will gel the whole thing together! Thanks for the write-up, certainly clear up a lot of stuff for newbies like me!

Reply

Great article! anonymous January 4 2009, 18:56:54 UTC
But where's part 3?

I have also read the Y combinator articles. They are really good.

Reply


Great anonymous September 14 2010, 00:58:25 UTC
I Agree, You Are Really Good At Explaining Things, Probably The Best Stuff on The Web About Monads

Reply


Leave a comment

Up