Towards template programming with Haskell – A small tutorial
vittoriozaccaria.net
vittoriozaccaria.net
For that matter, the Haskell Platform is hopefully packaged for your OS: install that and don't worry about installing GHC, template-haskell, cabal, etc separately.