It looks like his blogging engine is removing some of the code. A few lines are not valid Haskell, and GHC indeed complains about them.
But anyway, a "working" version is not much longer than this. Haskell's threads (or rather, MVars and Chans combined with purity) are really a joy to work with. If you haven't tried writing a small app like this, you should.
But anyway, a "working" version is not much longer than this. Haskell's threads (or rather, MVars and Chans combined with purity) are really a joy to work with. If you haven't tried writing a small app like this, you should.