The Haskell road to logic review
arxiv.org
arxiv.org
As is stated in the arxiv review, its not meant to be a self contained intro to Haskell. I used 'learn you a haskell for great good', as a language tutorial, and did the exercises from 'Haskell Road' for practice, which worked well.
'Haskell Road' is a really nice book, with a very ambitious goal - provide an introduction to many fundamental mathematical/logical concepts through Haskell.
After a great first 3 chapters, though, I was a little disappointed, by chapter 4, which is 'Sets, Types and Lists', and for the next couple of chapters. I felt the proportion of assignments that were in Haskell decreased substantially, and it became more like a normal Math text.
Now, there's nothing inherently wrong with that; and there were still many Haskell exercises in each chapter; but up to Chapter 4, I thought it had succeeded in teaching the Math/Logic mostly through Haskell; I felt it then became more like a traditional text.
I understand that many mathematical concepts, that have to be dealt with in a general sense (important general proofs etc) are best dealt with in the abstract, and not in Haskell. But I really like programming, and I found that coding my way through the earlier material was a very enjoyable way to cover the ground.
I'd love if there was a future edition, or another book, that brought us much further, with the same code-centric learning approach.
It is worth noting that the book uses HUGS examples instead of GHCI so there are some (mostly minor) differences between the example interactive code and the results in ghci. I don't remember off hand but I started the book thinking I'd just use ghci and that it would be the same as hugs, but there are a couple important differences between hugs and ghci that impacted some of the examples in the book. I stuck with ghci but to someone completely new to haskell it might be a confusing point.
[1]: http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/relea...
I'd like to see more books like this that use programming in teaching another subject, like Sussman and Wisdom's SICM.
I cannot gauge just how good HRtL is, but from my limited purview, it gave me the impression that is was worth its salt, and this posted review seems to indicate the same.
I'd love to hear from anyone who's had a more thorough impression than me, either good or bad -- I always thought it was an intriguing book.
I accidentally found this gem and, so far, enjoying every page of it.