On 10/29/06, JTXX <[EMAIL PROTECTED]> wrote:
Hello everybody.

I'm trying to learn Haskell, and so I implemented the
classic animal guessing game.  However, I feel that
there is probably a more elegant implementation than
the one shown below, so any suggestions for
improvement would be great.



All of your code lives in the IO monad. It's usually considered a good
idea to split your program into "IO" and "logic". Do as much as
possible outside of the IO monad (i.e. in functions which don't have
an IO type).

--
Sebastian Sylvan
+46(0)736-818655
UIN: 44640862
_______________________________________________
Haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to