[Haskell-beginners] Is this an appropriate use of the writer monad?

Alex Rozenshteyn rpglover64 at gmail.com
Fri Mar 11 06:47:59 CET 2011

I need to (for class) write a minimax implementation.

I'm currently doing this by functionally defining the entire tree and later
pruning it down to the size I want.

My assignment requires that I output the number of nodes I evaluated.  I am
considering wrapping the tree generation with the Writer monad (I'm not yet
certain how I'd do this).

Does this sound reasonable to you haskellers who know more than I?  Would
anyone suggest a better way?

          Alex R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110311/2ec63a15/attachment.htm>

More information about the Beginners mailing list