[Haskell-cafe] Re: Embedding newlines into a string?

Ariel J. Birnbaum valgarv at gmx.net
Wed Apr 16 15:57:04 EDT 2008


> That's exactly what I was thinking about, but your hanoi_shower only
> handles list of exactly one action, but you have to handle longer lists,
> too. This could be done with explicit recursion

This seems to be a common pitfall for Haskell newcomers: mistaking
a single-element list pattern (such as [x]) for a pattern that iterates
over every element in the list.
I can't seem to find a page with a list of common pitfalls and mistakes...
is there such a thing?

-- 
Ariel J. Birnbaum


More information about the Haskell-Cafe mailing list