diff --git a/elisp/ghc-flymake.el b/elisp/ghc-flymake.el index dd76cd8..d7ca979 100644 --- a/elisp/ghc-flymake.el +++ b/elisp/ghc-flymake.el @@ -1,3 +1,13 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; ghc-flymake.el +;;; + +;; Author: Kazu Yamamoto +;; Created: Mar 12, 2010 + +;;; Code: + (require 'flymake) (defvar ghc-flymake-allowed-file-name-masks @@ -19,15 +29,4 @@ (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) \ No newline at end of file diff --git a/ghc-mod.cabal b/ghc-mod.cabal index aac6560..e39ec19 100644 --- a/ghc-mod.cabal +++ b/ghc-mod.cabal @@ -10,6 +10,7 @@ Description: This packages includes Elisp files and a Haskell command, "ghc-mod". "ghc*.el" enable completion of Haskell symbols on Emacs. + Flymake is also integrated. "ghc-mod" is a backend of "ghc*.el". It lists up all installed modules or extracts names of functions, classes,