branch: elpa/haskell-ts-mode
commit fc139079479752c88cfae5b8adbffdcc0f7330d2
Author: Shohei YOSHIDA <syo...@gmail.com>
Commit: Shohei YOSHIDA <syo...@gmail.com>

    Fix byte-compile warnings
    
    - correct `:type` attribute
    - use defvar for global variable
---
 haskell-ts-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index c0cdafd5e8..1703dd0f56 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -53,7 +53,7 @@
 (defcustom haskell-ts-use-indent t
   "Set to non-nil to use the indentation provided by haskell-ts-mode"
   :group 'haskell-ts-mode
-  :type 'bool)
+  :type 'boolean)
 
 (defcustom haskell-ts-font-lock-level 4
   "Level of font lock, 1 for minimum highlghting and 4 for maximum."
@@ -136,7 +136,7 @@
    `(["(" ")" "[" "]"] @font-lock-operator-face
      (infix operator: (_) @font-lock-operator-face))))
 
-(setq haskell-ts-indent-rules
+(defvar haskell-ts-indent-rules
   (let ((p-prev-sib
         (lambda (node _ _)
           (let ((n (treesit-node-prev-sibling node)))

Reply via email to