Last active
August 23, 2019 00:03
-
-
Save freeman42x/c08258a0253fc8f3e19188218304a640 to your computer and use it in GitHub Desktop.
Haskell Emacs HIE setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/")) | |
(add-to-list 'package-archives | |
'("org" . "https://orgmode.org/elpa/") t) | |
(add-to-list 'package-archives | |
'("gnu" . "https://elpa.gnu.org/packages/")) ;; can works badly with helm-swoop | |
(add-to-list 'package-archives | |
'("marmalade" . "https://marmalade-repo.org/packages/")) | |
;; -------------------------------------------------- | |
;; your haskell stuff | |
(require 'lsp-ui) | |
(add-hook 'lsp-mode-hook 'lsp-ui-mode) | |
(add-hook 'haskell-mode-hook 'flycheck-mode) | |
(add-hook 'haskell-mode-hook #'lsp-haskell-enable) | |
(lsp-define-stdio-client lsp-haskell "haskell" #'lsp-haskell--get-root | |
;; '("hie" "--lsp" "-d" "-l" "/tmp/hie.log")) | |
;; '("hie" "--lsp" "-d" "-l" "/tmp/hie.log" "--vomit")) | |
(funcall lsp-haskell-process-wrapper-function (lsp--haskell-hie-command))) | |
(package-initialize) | |
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") | |
;; ----------------------------------------------------- | |
;; emacs generated | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(package-selected-packages (quote (lsp-ui lsp-mode)))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment