From c05ad5f47c7152aa0ed1d5bfc809f2c005c119a3 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Mon, 31 Mar 2014 14:09:21 +0900 Subject: [PATCH] allowing completion, for instance, for "[Byte" to "[ByteString". --- elisp/ghc-comp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elisp/ghc-comp.el b/elisp/ghc-comp.el index ceb8268..69217ee 100644 --- a/elisp/ghc-comp.el +++ b/elisp/ghc-comp.el @@ -224,7 +224,7 @@ unloaded modules are loaded") (defun ghc-completion-start-point () (save-excursion (let ((beg (save-excursion (beginning-of-line) (point))) - (regex (if (ghc-module-completion-p) "[ (,`]" "[ (,`.]"))) + (regex (if (ghc-module-completion-p) "[ (,`]" "[\[ (,`.]"))) (if (re-search-backward regex beg t) (1+ (point)) beg))))