haskell mode hooks