showing GHC version.
This commit is contained in:
12
elisp/ghc.el
12
elisp/ghc.el
@@ -108,20 +108,24 @@
|
||||
(defun ghc-debug ()
|
||||
(interactive)
|
||||
(let ((el-path (locate-file "ghc.el" load-path))
|
||||
(ghc-path (executable-find "ghc"))
|
||||
(ghc-mod-path (executable-find ghc-module-command))
|
||||
(ghc-modi-path (executable-find ghc-interactive-command))
|
||||
(el-ver ghc-version)
|
||||
(ghc-ver (ghc-run-ghc-mod '("--version") "ghc"))
|
||||
(ghc-mod-ver (ghc-run-ghc-mod '("version")))
|
||||
(ghc-modi-ver (ghc-run-ghc-mod '("version") ghc-interactive-command)))
|
||||
(switch-to-buffer (get-buffer-create "**GHC Debug**"))
|
||||
(erase-buffer)
|
||||
(insert "Path: check if you are using intended programs.\n")
|
||||
(insert (format "\tghc.el path: \t%s\n" el-path))
|
||||
(insert (format "\tghc-mod path: \t%s\n" ghc-mod-path))
|
||||
(insert (format "\tghc-modi path: \t%s\n" ghc-modi-path))
|
||||
(insert (format "\t ghc.el path: %s\n" el-path))
|
||||
(insert (format "\t ghc-mod path: %s\n" ghc-mod-path))
|
||||
(insert (format "\tghc-modi path: %s\n" ghc-modi-path))
|
||||
(insert (format "\t ghc path: %s\n" ghc-path))
|
||||
(insert "\nVersion: all versions must be the same.\n")
|
||||
(insert (format "\t ghc.el version %s\n" el-ver))
|
||||
(insert (format "\t %s\n" ghc-mod-ver))
|
||||
(insert (format "\t%s\n" ghc-modi-ver))))
|
||||
(insert (format "\t%s\n" ghc-modi-ver))
|
||||
(insert (format "\t%s\n" ghc-ver))))
|
||||
|
||||
(provide 'ghc)
|
||||
|
||||
Reference in New Issue
Block a user