diff --git a/modules/lang/haskell/config.el b/modules/lang/haskell/config.el index 5b0231441..28d539687 100644 --- a/modules/lang/haskell/config.el +++ b/modules/lang/haskell/config.el @@ -7,15 +7,12 @@ ;; Common plugins ;; -(def-package! hindent - :hook (haskell-mode . hindent-mode)) - (after! haskell-mode (setq haskell-process-suggest-remove-import-lines t ; warnings for redundant imports etc haskell-process-auto-import-loaded-modules t) (when (featurep! :feature syntax-checker) (setq haskell-process-show-overlays nil)) ; flycheck makes this unnecessary - (add-hook! 'haskell-mode-hook + (add-hook! 'haskell-mode-hook #'(subword-mode ; improves text navigation with camelCase haskell-collapse-mode ; support folding haskell code blocks interactive-haskell-mode)) @@ -30,8 +27,6 @@ ;; this is set to use cabal for dante users and stack for intero users: :n "b" #'haskell-process-cabal-build :n "c" #'haskell-cabal-visit-file - :n "p" #'hindent-reformat-buffer - :v "p" #'hindent-reformat-region :v "h" #'haskell-hide-toggle :nv "H" #'haskell-hide-toggle-all)) diff --git a/modules/lang/haskell/doctor.el b/modules/lang/haskell/doctor.el index e9e776b0b..fe571bc14 100644 --- a/modules/lang/haskell/doctor.el +++ b/modules/lang/haskell/doctor.el @@ -9,9 +9,6 @@ (unless (executable-find "stack") (warn! "Couldn't find stack. Intero will not work"))) -(unless (executable-find "hindent") - (warn! "Couldn't find hindent. hindent-mode won't work")) - (when (or (featurep! +dante) (featurep! +intero)) (unless (executable-find "hlint") (warn! "Couldn't find hlint. Flycheck may have issues in haskell-mode"))) diff --git a/modules/lang/haskell/packages.el b/modules/lang/haskell/packages.el index c5a0e418a..9259b2e45 100644 --- a/modules/lang/haskell/packages.el +++ b/modules/lang/haskell/packages.el @@ -2,7 +2,6 @@ ;;; lang/haskell/packages.el (package! haskell-mode) -(package! hindent) (cond ((featurep! +dante) (package! dante)