Also, there’s a code typo
instance Bool where
instance Eq Bool where
thanks to “nicolast”: http://www.reddit.com/user/nicolast
It’s great to see some discussion of Haskell and similar type systems in PragPub. Coincidentally, at our local Ruby users group I am trying to spread some ideas about type systems, and gave a talk about nil as sort of a first intro to how thinking in terms of types can be helpful: http://franklinchen.com/talk-on-nil
I want to do more work in creating some side-by-side comparisons of how one would do things in Ruby and how one would do things in Haskell or Scala in an “equivalent” but possibly “better” way.
Very nice survey, thanks for mentioning. I’ll definitely look up some of your other stuff too.
My next article will cover Dave Thomas’ word chain kata, maybe one or two more.