ESC C-e to process the module.

This commit is contained in:
Kazu Yamamoto
2010-01-06 14:39:30 +09:00
parent 35f60507c6
commit e9c4ec4e4b
5 changed files with 41 additions and 29 deletions

View File

@@ -38,4 +38,14 @@
(read (current-buffer))
(error ()))))
(defun ghc-extract-module ()
(interactive)
(save-excursion
(beginning-of-line)
(if (looking-at "^import +\\(qualified +\\)?\\([^ (\n]+\\)")
(match-string-no-properties 2))))
(defun ghc-read-module-name (def)
(read-from-minibuffer "Module name: " def ghc-input-map))
(provide 'ghc-func)