@@ -300,15 +300,23 @@ PREFIX should be a list such one returned by
300
300
301
301
302
302
(defun haskell-completions-completion-at-point ()
303
- " Provide a list of completion candidates .
304
- This function is supposed to be used in non-interactive context.
305
- It provides completions for haskell keywords, language pragmas,
303
+ " Provide completion list for thing at point .
304
+ This function is used in non-interactive `haskell-mode' . It
305
+ provides completions for haskell keywords, language pragmas,
306
306
GHC's options, and language extensions, but not identifiers."
307
307
(let ((prefix (haskell-completions-grab-prefix)))
308
308
(haskell-completions--simple-completions prefix)))
309
309
310
310
(defun haskell-completions-sync-repl-completion-at-point ()
311
- " A `completion-at-point' function using the current haskell process.
311
+ " A completion function used in `interactive-haskell-mode' .
312
+ Completion candidates are provided quering current haskell
313
+ process, that is sending `:complete repl' command.
314
+
315
+ Completes all possible things: everything that can be completed
316
+ with non-interactive function
317
+ `haskell-completions-completion-at-point' plus identifier
318
+ completions.
319
+
312
320
Returns nil if no completions available."
313
321
(let ((prefix-data (haskell-completions-grab-prefix)))
314
322
(when prefix-data
0 commit comments