Skip to content

Commit 7356b23

Browse files
committed
Merge pull request #736 from geraldus/ac-improvements
Turn haskell-ghc-supported-(extensions|options) options to variables
2 parents a67b0a2 + a71131b commit 7356b23

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

haskell-customize.el

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,6 @@ same vein as `haskell-indent-spaces'."
336336
:group 'haskell
337337
:type '(repeat 'string))
338338

339-
(defcustom haskell-ghc-supported-extensions
340-
(split-string (shell-command-to-string "ghc --supported-extensions"))
341-
"List of language extensions supported by the installed version of GHC."
342-
:group 'haskell
343-
:type '(repeat string))
344-
345-
(defcustom haskell-ghc-supported-options
346-
(split-string (shell-command-to-string "ghc --show-options"))
347-
"List of options supported by the installed version of GHC."
348-
:group 'haskell
349-
:type '(repeat string))
350339

351340
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
352341
;; Accessor functions

haskell-mode.el

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,20 @@ be set to the preferred literate style."
202202
map)
203203
"Keymap used in Haskell mode.")
204204

205+
206+
(defvar haskell-ghc-supported-extensions
207+
(split-string (shell-command-to-string "ghc --supported-extensions"))
208+
"List of language extensions supported by the installed version of GHC.
209+
This list comes from default system's GHC, i.e. first `ghc`
210+
executable found in PATH.")
211+
212+
(defvar haskell-ghc-supported-options
213+
(split-string (shell-command-to-string "ghc --show-options"))
214+
"List of options supported by the installed version of GHC.
215+
This list comes from default system's GHC, i.e. first `ghc`
216+
executable found in PATH.")
217+
218+
205219
(defun haskell-mode-enable-process-minor-mode ()
206220
"Tell the user to choose a minor mode for process interaction."
207221
(interactive)

0 commit comments

Comments
 (0)