Skip to content

Turn few customizable options to variables #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions haskell-customize.el
Original file line number Diff line number Diff line change
Expand Up @@ -336,17 +336,6 @@ same vein as `haskell-indent-spaces'."
:group 'haskell
:type '(repeat 'string))

(defcustom haskell-ghc-supported-extensions
(split-string (shell-command-to-string "ghc --supported-extensions"))
"List of language extensions supported by the installed version of GHC."
:group 'haskell
:type '(repeat string))

(defcustom haskell-ghc-supported-options
(split-string (shell-command-to-string "ghc --show-options"))
"List of options supported by the installed version of GHC."
:group 'haskell
:type '(repeat string))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Accessor functions
Expand Down
14 changes: 14 additions & 0 deletions haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,20 @@ be set to the preferred literate style."
map)
"Keymap used in Haskell mode.")


(defvar haskell-ghc-supported-extensions
(split-string (shell-command-to-string "ghc --supported-extensions"))
"List of language extensions supported by the installed version of GHC.
This list comes from default system's GHC, i.e. first `ghc`
executable found in PATH.")

(defvar haskell-ghc-supported-options
(split-string (shell-command-to-string "ghc --show-options"))
"List of options supported by the installed version of GHC.
This list comes from default system's GHC, i.e. first `ghc`
executable found in PATH.")


(defun haskell-mode-enable-process-minor-mode ()
"Tell the user to choose a minor mode for process interaction."
(interactive)
Expand Down