Better scratch buffer message, and add haskell mode