Skip to content

Commit ab1ec6a

Browse files
committed
move haskell-stylish-save to haskell-customize
The immediate motivation is that haskell-modules depends on this variable due to the previous commit, b6871d1.
1 parent b6871d1 commit ab1ec6a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

haskell-customize.el

+7
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,13 @@ same vein as `haskell-indent-spaces'."
404404
:group 'haskell
405405
:type '(repeat 'string))
406406

407+
;;;###autoload
408+
(defcustom haskell-stylish-on-save nil
409+
"Whether to run stylish-haskell on the buffer before saving.
410+
If this is true, `haskell-add-import' will not sort or align the
411+
imports."
412+
:group 'haskell
413+
:type 'boolean)
407414

408415
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
409416
;; Accessor functions

haskell-mode.el

-8
Original file line numberDiff line numberDiff line change
@@ -820,14 +820,6 @@ Note that negative arguments do not work so well."
820820
(const "ghc -fno-code")
821821
(string :tag "Other command")))
822822

823-
;;;###autoload
824-
(defcustom haskell-stylish-on-save nil
825-
"Whether to run stylish-haskell on the buffer before saving.
826-
If this is true, `haskell-add-import' will not sort or align the
827-
imports."
828-
:group 'haskell
829-
:type 'boolean)
830-
831823
;;;###autoload
832824
(defcustom haskell-tags-on-save nil
833825
"Generate tags via hasktags after saving."

haskell-modules.el

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
(require 'haskell-navigate-imports)
2424
(require 'haskell-complete-module)
2525
(require 'haskell-sandbox)
26+
(require 'haskell-customize)
2627

2728
(defun haskell-add-import (&optional module)
2829
"Add an import to the import list. Sorts and aligns imports,

0 commit comments

Comments
 (0)