output-dir.
This commit is contained in:
@@ -13,12 +13,20 @@
|
||||
ghc-flymake-err-line-patterns)
|
||||
|
||||
(defun ghc-flymake-init ()
|
||||
(let* ((temp-file (flymake-init-create-temp-buffer-copy
|
||||
'flymake-create-temp-inplace))
|
||||
(local-file (file-relative-name
|
||||
temp-file
|
||||
(file-name-directory buffer-file-name))))
|
||||
(list "ghc-mod" (append (ghc-module-command-args)
|
||||
(list "check" local-file)))))
|
||||
(let ((file (file-name-nondirectory (buffer-file-name))))
|
||||
(flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)
|
||||
(list ghc-module-command (append (ghc-module-command-args)
|
||||
(list "check" file)))))
|
||||
|
||||
;; ghc --make GHCMod.hs -outputdir dist/flymake -o dist/flymake/GHCMod
|
||||
|
||||
;; (defun ghc-flymake-init ()
|
||||
;; (let* ((temp-file (flymake-init-create-temp-buffer-copy
|
||||
;; 'flymake-create-temp-inplace))
|
||||
;; (local-file (file-relative-name
|
||||
;; temp-file
|
||||
;; (file-name-directory buffer-file-name))))
|
||||
;; (list ghc-module-command (append (ghc-module-command-args)
|
||||
;; (list "check" local-file)))))
|
||||
|
||||
(provide 'ghc-flymake)
|
||||
Reference in New Issue
Block a user