Emacs <24.3 compatibility
Basic indentation cribbed from Haskell-mode