     (intero-with-repl-buffer prompt-options
       (comint-simple-send
        (get-buffer-process (current-buffer))
-       (concat ":load " file))
-      (setq intero-repl-last-loaded file))))
+       (concat ":load " file)))))
 
 (defun intero-repl-eval-region (begin end &optional prompt-options)
   "Evaluate the code in region from BEGIN to END in the REPL.

STACK-YAML is the stack yaml config to use.  When nil, tries to
use project-wide intero-stack-yaml when nil, otherwise uses
stack's default)."
  (setq intero-repl-last-loaded nil)
  (setq intero-targets targets)
  (when stack-yaml
    (setq intero-stack-yaml stack-yaml))


(defvar-local intero-ghc-version nil
  "GHC version used by the project.")

(defvar-local intero-buffer-host nil
  "The hostname of the box hosting the intero process for the current buffer.")
