Skip to content

Instantly share code, notes, and snippets.

@shapr
Created November 13, 2024 21:21
Show Gist options
  • Save shapr/45ba4f1fc8efd935b23333d287bcb174 to your computer and use it in GitHub Desktop.
Save shapr/45ba4f1fc8efd935b23333d287bcb174 to your computer and use it in GitHub Desktop.
subset of shae's haskell-mode config
(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