insert foo = undefined if "No inferred type".

insert guessed type even if it is contains in second line or later.
This commit is contained in:
Kazu Yamamoto
2010-05-04 12:14:33 +09:00
parent 5c4ded0630
commit baa65be4a6
3 changed files with 40 additions and 24 deletions

View File

@@ -19,8 +19,10 @@
(beginning-of-line)
(looking-at "^[^ ]+ *::"))
(ghc-insert-function-template))
((ghc-flymake-have-errs-p)
(ghc-flymake-insert-from-warning))
(t
(ghc-flymake-insert-type))))
(message "Nothing to be done"))))
(defun ghc-insert-module-template ()
;; xxx mod from filename...