Add a little something like this to your .emacs:
;; (add-hook 'haskell-mode-hook ;; '(lambda () ;; (load "haskell-tweet-errors.el") ;; (define-key haskell-mode-map [f5] ;; (lambda () ;; (interactive) ;; (inferior-haskell-load-file-tweet-errors ;; "<username>" "<password>")))))
Hit F5 to load your Haskell file with Emacs into GHCi. If there’s a type/kind/class error, it will twitter it and present you with a message:
Tweeted. Now the world knows about your type error!
It’s something called intellectual honesty! According to a talk I saw by Simon Peyton-Jones, the early Haskell compilers would delete your source code upon a type error.
I figure why not replace mild annoyance with public shame?