Friday, 31 August 2007

Haskell: It always begins with a hello world

I used to go through digg and reddit on a >5 times a day basis. On one fateful day, I came across an article about Software Transaction Management (STM). The article led me to this page by Simon Peyton Jones from Microsoft Research. Pugs was impressive but this was what started me on my journey with Haskell (Yes, it wasn't too long ago. Let's see how it goes a year from today).

Took me a while to figure what's going on in Haskell as it's really different from anything I've come across. I did play around with Lisp and Scheme before but either I haven't worked with the 2 for very long or I must have very bad memory retention. Anyway,
here's my hello world implementation.

main :: IO ()
main = putStrLn "Hello, World!"