File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 37
37
; ;; Code:
38
38
39
39
(require 'haskell-mode )
40
+ (require 'haskell-process )
41
+ (require 'haskell-interactive-mode )
40
42
41
43
(defvar haskell-completions-pragma-names
42
44
(list " DEPRECATED"
@@ -218,6 +220,22 @@ result only if prefix length is not less than MINLEN."
218
220
prefix))
219
221
(prefix prefix)))))
220
222
223
+ (defun haskell-completions-sync-complete-repl (prefix &optional import )
224
+ " Return completion list for given PREFIX quering REPL synchronously.
225
+ When optional IMPORT argument is non-nil complete PREFIX
226
+ prepending \" import \" keyword (useful for module names). This
227
+ function is supposed for internal use."
228
+ (haskell-process-get-repl-completions
229
+ (haskell-interactive-process)
230
+ (if import
231
+ (concat " import " prefix)
232
+ prefix)))
233
+
234
+ (defun haskell-completions-dabbrev-completions (prefix )
235
+ " Return completion list for PREFIX using dabbrev facility.
236
+ This function is supposed for internal use."
237
+ (dabbrev--reset-global-variables )
238
+ (dabbrev--find-all-expansions prefix nil ))
221
239
222
240
(provide 'haskell-completions )
223
241
; ;; haskell-completions.el ends here
You can’t perform that action at this time.
0 commit comments