   (interactive "P")
   (let* ((cabal-file (pjones:haskell-find-cabal-file))
          (default-directory (file-name-directory cabal-file))
-         (command "nix-hs-build"))
+         (command "nix-hs"))
     (compile (if arg (concat command " test") command))))
 
 (defun pjones:haskell-beginning-of-defun (&optional arg)

(defun pjones-haskell-process-wrapper-function (argv)
  "Run Haskell tools through nix-shell by modifying ARGV.
See `haskell-process-wrapper-function' for details."
  (append (list "nix-hs-shell" "--command")
          (list (mapconcat 'identity argv " "))))

(defun pjones:haskell-mode-hook ()

  '(haskell-indentation-ifte-offset 2)
  '(haskell-indentation-where-pre-offset 2)
  '(haskell-indentation-where-post-offset 2)
  '(dante-repl-command-line '("nix-hs" "-s" "--" "--command" "cabal new-repl")))

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