fixing M-t with test cases.

This commit is contained in:
Kazu Yamamoto 2014-04-23 14:51:29 +09:00
parent 1fdf8b2cc1
commit b4bb249131

View File

@ -239,6 +239,9 @@ nil does not display errors/warnings.
((string-match "Not in scope: type constructor or class .\\([^\n]+\\)." data) ((string-match "Not in scope: type constructor or class .\\([^\n]+\\)." data)
(let ((sym (match-string 1 data))) (let ((sym (match-string 1 data)))
(ghc-ins-mod sym))) (ghc-ins-mod sym)))
((string-match "Not in scope: data constructor .\\([^\n]+\\)." data)
(let ((sym (match-string 1 data)))
(ghc-ins-mod sym)))
((string-match "Not in scope: .\\([^\n]+\\)." data) ((string-match "Not in scope: .\\([^\n]+\\)." data)
(let ((sym (match-string 1 data))) (let ((sym (match-string 1 data)))
(if (or (string-match "\\." sym) ;; qualified (if (or (string-match "\\." sym) ;; qualified
@ -252,8 +255,7 @@ nil does not display errors/warnings.
(let* ((fn (ghc-get-function-name)) (let* ((fn (ghc-get-function-name))
(arity (ghc-get-function-arity fn))) (arity (ghc-get-function-arity fn)))
(ghc-insert-underscore fn arity))) (ghc-insert-underscore fn arity)))
;; fixme ((string-match "Found:\n[ ]+\\([^\t]+\\)\nWhy not:\n[ ]+\\([^\t]+\\)" data)
((string-match "Found:\n[ ]*\\([^\n]+\\)\nWhy not:\n[ ]*\\([^\n]+\\)" data)
(let ((old (match-string 1 data)) (let ((old (match-string 1 data))
(new (match-string 2 data))) (new (match-string 2 data)))
(beginning-of-line) (beginning-of-line)
@ -311,7 +313,7 @@ nil does not display errors/warnings.
(insert fn) (insert fn)
(dotimes (i arity) (dotimes (i arity)
(insert " _")) (insert " _"))
(insert " = error \"" fn "\""))))) (insert " = error \"" fn "\"\n")))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;