Skip to content

Commit

Permalink
Merge pull request #193 from dschrempf/rm-dep-haskell-mode
Browse files Browse the repository at this point in the history
Do not depend on nor require `haskell-mode`
  • Loading branch information
michaelpj authored Jan 26, 2025
2 parents 6981f8d + f5214c6 commit 1d618c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Eask
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

(depends-on "emacs" "27.1")
(depends-on "lsp-mode")
(depends-on "haskell-mode")

(development
(depends-on "f")
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ Do not skip this!
It has important information.

`lsp-mode` automatically requires the `lsp-haskell` package , so you do not need to `require` `lsp-haskell` unless you like being explicit.
Similarly, `lsp-haskell` automatically requires the `haskell-mode` package, so you do not need to `require` `haskell-mode`.

You will need to set some hooks to ensure that `lsp-mode` is triggered when the `haskell-mode` major mode is entered.
You will need to set some hooks to ensure that `lsp-mode` is triggered when your Haskell major mode (e.g., `haskell-mode` or `haskell-ts-mode`) is entered.

```emacs-lisp
(add-hook 'haskell-mode-hook #'lsp)
Expand Down
3 changes: 1 addition & 2 deletions lsp-haskell.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;;; lsp-haskell.el --- Haskell support for lsp-mode -*- lexical-binding: t; -*-

;; Version: 1.1
;; Package-Requires: ((emacs "27.1") (lsp-mode "3.0") (haskell-mode "16.1"))
;; Package-Requires: ((emacs "27.1") (lsp-mode "3.0"))
;; Keywords: haskell
;; URL: https://github.com/emacs-lsp/lsp-haskell

Expand Down Expand Up @@ -29,7 +29,6 @@
;;; Code:

(require 'lsp-mode)
(require 'haskell-mode)

;; ---------------------------------------------------------------------
;; Configuration
Expand Down

0 comments on commit 1d618c6

Please sign in to comment.