<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 9:40 AM, Michael Mossey <span dir="ltr">&lt;<a href="mailto:mpm@alumni.caltech.edu">mpm@alumni.caltech.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
Zachary Turner wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Which book or tutorial has the best exercises?  Whenever I learn a language I like to do tons of exercises, and in fact I keep a list of books with great exercises.  I currently have Real World Haskell and Programming in Haskell (Hutton), but I feel the exercises in these books are lacking.  <br>

</blockquote>
<br></div>
Hi Zachary, great question. I just recently purchased &quot;Real World Haskell&quot; and &quot;The Haskell School of Expression&quot; (SOE). I&#39;m also working through Hal Daume III&#39;s &quot;Yet Another Haskell Tutorial&quot; (YAHT), free online.<br>

<br>
YAHT has some hard exercises, early on. He introduces continuations in chapter 4, briefly, and then casually asks you to rewrite map and filter  in continuation-passing-style. I was stumped. But most of the exercises are approachable.<br>

<br>
I have looked at Simon Thompson&#39;s book (The Craft of Functional Programming) in the bookstore and it looks elegantly written.<br>
<br>
If I&#39;m working alone, I also appreciate having the answers to the exercises available somewhere. I like to solve the problem, then go see how much more elegantly the answer key did it. There is a website with answers to SOE&#39;s exercises:<br>

<br>
&lt;<a href="http://www.elbeno.com/haskell_soe_blog/?page_id=24" target="_blank">http://www.elbeno.com/haskell_soe_blog/?page_id=24</a>&gt;<br>
<br>
YAHT includes the answers in the appendix.<br>
<br>
I don&#39;t know about Thompson&#39;s book; maybe he can tell us where to find the answers, or if they are in the appendix.<br>
</blockquote></div><br>Thanks for the good suggestions!  I&#39;ll definitely check out YAHT, hard exercises sound good.  I also came across Richard Bird&#39;s Haskell book, which judging from what I found on Amazon&#39;s search inside, it looks like it has some pretty serious ones, so I might check that out too.<br>
<br>If you&#39;re an exercise freak like me, you should take a look at Richard Stanley&#39;s Enumerative Combinatorics Volume 2, page 221 (problem 19), if for no other reason than to say you&#39;ve seen the best exercise in the history of exercises, across all books and fields.  :P  (<a href="http://www-math.mit.edu/~rstan/ec/catalan.pdf">http://www-math.mit.edu/~rstan/ec/catalan.pdf</a>)  Even if you don&#39;t understand the material, it&#39;s pretty evident after you&#39;ve scrolled down a few pages why it&#39;s so amazing.  <br>
<br>Thanks again<br>