Wednesday, November 21, 2007

learning Haskell

I picked up Programming in Haskell by Graham Hutton from Amazon and have read the first couple of chapters. After so many years of imperative programming, it isn't so easy to digest Haskell. After getting the absolute basics, I decided to setup a development environment on my Mac.

The book recommended HUGS so that is what I installed first. Darwin Ports came to the rescue and it turns out there is a port available for HUGS.

After trying some book samples in HUGS it seemed like time to move on to writing my first script. I reached for TextMate and loaded up the TextMate bundle only to discover that it works with the Glasgow Haskell compiler or ghc. Once again there is a package for ghc within Darwin Ports so I proceeded to load up ghc. TextMate again proves to be one of the most versatile tools I have.