   "Save the module name of the current buffer to the kill ring."
   (interactive)
   (kill-new (pjones:haskell-module-name)))
-
-(defun pjones:haskell-lint-all ()
-  "Run hlint from a directory containing a .cabal file."
-  (interactive)
-  (let* ((dir (pjones:haskell-find-cabal-file))
-         (files (cl-remove-if
-                 (lambda (f)
-                   (or (string-match "^\\." (file-name-base f))
-                       (string= "dist"      (file-name-base f))
-                       (string= "cabal-dev" (file-name-base f))
-                       (and (not (file-directory-p f))
-                            (not (string= "hs" (file-name-extension f))))))
-                 (directory-files dir t))))
-    (haskell-check (concat "hlint " (mapconcat 'identity files " ")))))
 
 (defun pjones:haskell-smart-newline ()
   "Insert a new line below point that looks like the current

  (require 'haskell-indentation)
  (require 'haskell-mode))

(defun pjones:haskell-find-cabal-file ()
  "Return the full path to the *.cabal file for the current project."
  (let* ((dir default-directory)

  (find-file (pjones:haskell-find-cabal-file)))

(defun pjones:haskell-compile ()
  "Compile the current project using
`haskell-compile-cabal-build-command'."
  (interactive)
  (let* ((cabal-file (pjones:haskell-find-cabal-file))
         (default-directory (file-name-directory cabal-file)))
