@@ -873,9 +873,10 @@ from `module-buffer'."
873
873
cabal-file))
874
874
(haskell-cabal-add-dependency package-name version nil t ))))
875
875
876
- (defun haskell-process-suggest-imports (imports ident )
877
- " Given a list of IMPORTS, suggest adding them to the import section."
878
- (let ((module (cond ((> (length modules) 1 )
876
+ (defun haskell-process-suggest-imports (modules ident )
877
+ " Given a list of MODULES, suggest adding them to the import section."
878
+ (let ((suggested-already (haskell-process-suggested-imports process))
879
+ (module (cond ((> (length modules) 1 )
879
880
(when (y-or-n-p (format " Identifier `%s' not in scope, choose module to import? "
880
881
ident))
881
882
(haskell-complete-module-read " Module: " modules)))
@@ -902,7 +903,6 @@ from `module-buffer'."
902
903
and if a result comes back, suggest to import that identifier
903
904
now."
904
905
(let* ((process (haskell-session-process session))
905
- (suggested-already (haskell-process-suggested-imports process))
906
906
(ident (let ((i (match-string 1 msg)))
907
907
; ; Skip qualification.
908
908
(if (string-match " ^[A-Za-z0-9_'.]+\\ .\\ (.+\\ )$" i)
@@ -916,7 +916,6 @@ now."
916
916
and if a result comes back, suggest to import that identifier
917
917
now."
918
918
(let* ((process (haskell-session-process session))
919
- (suggested-already (haskell-process-suggested-imports process))
920
919
(ident (let ((i (match-string 1 msg)))
921
920
; ; Skip qualification.
922
921
(if (string-match " ^[A-Za-z0-9_'.]+\\ .\\ (.+\\ )$" i)
0 commit comments