Simple Unix tools in Haskell
haskell.org
haskell.org
This is a really good post on how to do something useful with Haskell (plus it has IO, which is nice). One of the nice things about this approach is that the incidental knowledge can be useful, e.g. I didn't know about the "-e" flag to GHC.
I'd much rather see how you tweet something from Haskell, parse a configuration file with a simple syntax or something else along those lines.
Hmmm... I mean that somewhat less vacuously than English is rendering it.
The tail example wasn't like that. It's the wrong algorithm. It's also in a class of algorithms that's particularly difficult in functional languages.
Showing easy examples and skipping the hard stuff, IMHO, is endemic with "enthusiast" languages like this. I don't think that shows the language in a very good light.
Otherwise any newbie running this code will come back crying: "it's slower than my simple python implementation" (not to mention the standard GNU tools).