News for hackers. Stuff that matters.
Re:Ask HN: How would you do this in Haskell? by paulrpotts on Wednesday April 22, 2015 @01:13PM (#9421891)
Mr. Muppet, I am not a Haskell expert, but I had a similar coding issue that I blogged about a while back. I was threading a score value through some code that calculates an updated gameboard. The solution (well, one solution) was a writer monad. That got me over the hump a little further towards understanding monads, and the conventional wisdom nowadays seems to be that teaching beginning Haskell developers how to _use_ them is more effective than pointing them at endless monad tutorials or articles on category theory.

If that sounds helpful, see: http://praisecurseandrecurse.blogspot.com/2013/07/the-polar-... and see also the next post in the blog. Then maybe go from there!

Re:Ask HN: How would you do this in Haskell? by AnimalMuppet on Wednesday April 22, 2015 @02:09PM (#9422310)
That's actually rather helpful, especially the "important stuff, but not the point" line. That's a bigger deal than my question.
Re:Ask HN: How would you do this in Haskell? by paulrpotts on Thursday April 23, 2015 @10:19AM (#9426812)
Glad to hear it. I think once you've used one of the monads the whole concept starts to make a lot more practical sense.