Created
November 13, 2024 21:21
-
-
Save shapr/45ba4f1fc8efd935b23333d287bcb174 to your computer and use it in GitHub Desktop.
subset of shae's haskell-mode config
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
(use-package haskell-mode | |
:ensure t | |
:delight " hsk" | |
:bind (:map haskell-mode-map ([(meta .)] . lsp-find-definition)) | |
:init | |
(progn | |
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) | |
(add-hook 'haskell-mode-hook #'lsp-deferred) | |
(add-hook 'haskell-literate-mode-hook #'lsp) | |
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent) | |
(add-hook 'haskell-mode-hook 'interactive-haskell-mode) | |
(setq haskell-process-args-cabal-new-repl | |
'("--ghc-options=-ferror-spans -fshow-loaded-modules")) | |
(setq haskell-process-type 'cabal-repl) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment