haskell mode hook