File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -398,11 +398,16 @@ Give optional NEXT-P parameter to override value of
398398 nil
399399 (current-buffer )))
400400
401- (defun haskell-load-and-run ()
402- " Loads the current buffer and runs the main function."
403- (interactive )
401+ (defvar haskell-load-and-run-expr-history nil
402+ " History of expressions used in `haskell-load-and-run' ." )
403+
404+ (defun haskell-load-and-run (expr )
405+ " Load the current buffer and run EXPR, e.g. \" main\" ."
406+ (interactive (list (read-string " Run expression: "
407+ (car haskell-load-and-run-expr-history)
408+ 'haskell-load-and-run-expr-history )))
404409 (haskell-process-load-file )
405- (haskell-interactive-mode-run-expr " main " ))
410+ (haskell-interactive-mode-run-expr expr ))
406411
407412;;;### autoload
408413(defun haskell-process-reload ()
You can’t perform that action at this time.
0 commit comments