Skip to content

Commit

Permalink
Satisfy Makefile warnings for haskell-complete-module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jun 6, 2014
1 parent c285ee3 commit e49c0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -27,6 +27,7 @@ ELFILES = \
haskell-move-nested.el \
haskell-navigate-imports.el \
haskell-package.el \
haskell-complete-module.el \
haskell-process.el \
haskell-session.el \
haskell-show.el \
Expand Down
10 changes: 6 additions & 4 deletions haskell-complete-module.el
Expand Up @@ -17,6 +17,8 @@

;;; Code:

(require 'cl)

(defcustom haskell-complete-module-preferred
'()
"Override ordering of module results by specifying preferred modules."
Expand Down Expand Up @@ -50,13 +52,13 @@
" | ")
"}"))))
(case key
('backspace (progn (unless (null stack)
(backspace (progn (unless (null stack)
(setq candidates (pop stack)))
(unless (string= "" pattern)
(setq pattern (substring pattern 0 -1)))))
('return (setq result (car candidates)))
('left (setq candidates (append (last candidates) (butlast candidates))))
('right (setq candidates (append (cdr candidates) (list (car candidates)))))
(return (setq result (car candidates)))
(left (setq candidates (append (last candidates) (butlast candidates))))
(right (setq candidates (append (cdr candidates) (list (car candidates)))))
(t (when (characterp key)
(let ((char (char-to-string key)))
(when (string-match "[A-Za-z0-9_'.]+" char)
Expand Down

0 comments on commit e49c0e5

Please sign in to comment.