Skip to content

Commit 00cb106

Browse files
Fix reference to free variable warning
This change moves the config-options variable at the top to remove a compilation warning.
1 parent e9c306b commit 00cb106

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lsp-haskell.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ For example, use the following the start the hie process in a nix-shell:
7676
(function-item :tag "None" :value identity)
7777
(function :tag "Custom function")))
7878

79+
;; ---------------------------------------------------------------------
80+
;; Internal variables
81+
82+
(defvar lsp-haskell--config-options (make-hash-table))
83+
7984
;; ---------------------------------------------------------------------
8085
;; HaRe functions
8186

@@ -204,10 +209,6 @@ These are assembled from the customizable variables
204209

205210
;; ---------------------------------------------------------------------
206211

207-
(defvar lsp-haskell--config-options (make-hash-table))
208-
209-
;; ---------------------------------------------------------------------
210-
211212
(defun lsp-haskell--set-configuration ()
212213
(lsp--set-configuration `(:languageServerHaskell ,lsp-haskell--config-options)))
213214

0 commit comments

Comments
 (0)