   (find-file (pjones:haskell-find-cabal-file)))
 
 (defun pjones:haskell-compile ()
-  "Compile the current project using `nix-hs-build'."
+  "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)))


  ;; These need to be set before calling `pjones:prog-mode-hook'.
  (setq tab-always-indent t
        haskell-stylish-on-save nil
        haskell-completing-read-function 'ivy-completing-read
        haskell-indentation-layout-offset 0
        haskell-indentation-starter-offset 2
        haskell-indentation-left-offset 2
        haskell-indentation-ifte-offset 2
        haskell-indentation-where-pre-offset 2
        haskell-indentation-where-post-offset 2
        beginning-of-defun-function 'pjones:haskell-beginning-of-defun
        end-of-defun-function 'pjones:haskell-end-of-defun
        projectile-project-compilation-cmd "nix-hs-build"
        ghc-module-command "nix-hs-ghc-mod"

        haskell-compile-cabal-build-command "nix-hs-build"
        haskell-process-type 'cabal-repl
        haskell-process-suggest-language-pragmas t
        haskell-process-suggest-remove-import-lines t
        haskell-interactive-popup-errors nil
        haskell-process-wrapper-function ; Run commands via nix-hs-shell:
          (lambda (argv) (append (list "nix-hs-shell" "--run")
                                 (list (mapconcat 'identity argv " ")))))

  (pjones:prog-mode-hook)
  (subword-mode)

  "Save the module name of the current buffer to the kill ring."
  (interactive)
  (kill-new (pjones:haskell-module-name)))

(defun pjones:haskell-smart-newline ()
  "Insert a new line below point that looks like the current
